/* ShieldMGP — Landing Page. Konsep: "Stempel & Ledger". */

:root {
  --ink:        #0b1526;
  --ink-2:      #101e38;
  --seal:       #23407d;
  --seal-soft:  #34518f;
  --gold:       #ebA824;
  --gold-hi:    #f5c869;
  --paper:      #f3ecdd;
  --paper-dim:  #e6dcc6;
  --rule:       #2c3e64;
  --verify:     #4c9a72;
  --text-hi:    #f5f2e9;
  --text-lo:    #93a0be;
  --text-lo-2:  #6b7a9c;

  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body:    'Public Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'Space Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --container: 1120px;
  --container-narrow: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol { padding: 0; list-style: none; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.section__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section__inner--narrow {
  max-width: var(--container-narrow);
  text-align: center;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 680;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-hi);
  max-width: 16ch;
}
.section__lead {
  margin-top: 16px;
  max-width: 56ch;
  color: var(--text-lo);
  font-size: 1.05rem;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 21, 38, 0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nav.is-scrolled {
  background: rgba(11, 21, 38, 0.92);
  border-bottom-color: var(--rule);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo { width: 30px; height: 30px; object-fit: contain; }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav__word {
  font-family: var(--font-display);
  font-weight: 680;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--text-hi);
}
.nav__sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: var(--text-lo-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: 3px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--sm { padding: 8px 16px; font-size: 0.85rem; }
.btn--lg { padding: 15px 30px; font-size: 1.05rem; }
.btn--gold {
  background: var(--gold);
  color: #24170a;
  box-shadow: 0 1px 0 rgba(0,0,0,0.15);
}
.btn--gold:hover { background: var(--gold-hi); transform: translateY(-1px); }
.btn--ghost {
  color: var(--text-hi);
  border: 1px solid var(--rule);
}
.btn--ghost:hover { border-color: var(--seal-soft); background: rgba(255,255,255,0.03); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px 24px 120px;
  min-height: 100vh;
  min-height: 100svh;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.hero__headline {
  font-family: var(--font-display);
  font-weight: 680;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text-hi);
}
.hero__headline-accent { color: var(--gold-hi); }
.hero__sub {
  margin-top: 26px;
  max-width: 46ch;
  font-size: 1.08rem;
  color: var(--text-lo);
}
.hero__cta {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__stamp-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}
.hero__ink-ring {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235,168,36,0.16) 0%, rgba(235,168,36,0.05) 55%, transparent 72%);
  opacity: 0;
}
.stamp {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(1.5) rotate(-10deg);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.45));
}
.stamp__mark {
  width: 150px; height: 150px; object-fit: contain;
  background: var(--paper); border-radius: 50%; padding: 20px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}
.stamp__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.stamp__ring-text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2.5px;
  fill: var(--gold);
  text-transform: uppercase;
}

.stamp-stage-ready .stamp {
  animation: stampPress 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s forwards;
}
.stamp-stage-ready .hero__ink-ring {
  animation: inkFlash 0.9s ease-out 0.55s forwards;
}
.stamp-stage-ready .stamp__ring {
  animation: ringSpin 48s linear infinite;
}
@keyframes stampPress {
  0%   { opacity: 0; transform: scale(1.5) rotate(-10deg); }
  70%  { opacity: 1; transform: scale(0.96) rotate(1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes inkFlash {
  0%   { opacity: 0; transform: scale(0.6); }
  35%  { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.55; transform: scale(1); }
}
@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

.hero__headline, .hero__sub, .hero__cta, .eyebrow {
  opacity: 0;
  transform: translateY(10px);
}
.stamp-stage-ready .eyebrow          { animation: revealUp 0.6s ease-out 0.05s forwards; }
.stamp-stage-ready .hero__headline   { animation: revealUp 0.6s ease-out 0.15s forwards; }
.stamp-stage-ready .hero__sub        { animation: revealUp 0.6s ease-out 0.28s forwards; }
.stamp-stage-ready .hero__cta        { animation: revealUp 0.6s ease-out 0.4s forwards; }
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

.compare {
  padding: 100px 0;
  background: var(--ink-2);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.compare__grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.compare__card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 28px;
}
.compare__card--new { border-color: var(--seal-soft); }
.compare__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-lo-2);
  margin-bottom: 18px;
}
.compare__card--new .compare__label { color: var(--gold); }
.compare__note {
  margin-top: 20px;
  font-size: 0.94rem;
  color: var(--text-lo);
}

.mock-sheet {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--paper);
  color: #2a2015;
  border-radius: 3px;
  overflow: hidden;
}
.mock-sheet__row {
  display: flex;
  justify-content: space-between;
  padding: 9px 12px;
  border-bottom: 1px solid var(--paper-dim);
}
.mock-sheet__row:last-child { border-bottom: none; }
.mock-sheet__cell--edited s { color: #b6462f; margin-right: 6px; opacity: 0.7; }

.mock-ledger {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--paper);
  color: #2a2015;
  border-radius: 3px;
  overflow: hidden;
}
.mock-ledger__entry {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--paper-dim);
}
.mock-ledger__entry:last-child { border-bottom: none; }
.mock-ledger__entry--reversal { color: #8a5a1f; }
.mock-ledger__entry--new { background: rgba(76,154,114,0.12); }
.mock-ledger__ts { color: #6b6248; }

.chain {
  padding: 110px 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.chain__list {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.chain__stub {
  position: relative;
  background: var(--paper);
  color: #2a2015;
  border-radius: 4px;
  padding: 20px 16px 22px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: calc(var(--i) * 90ms);
}
.chain__stub::before {
  content: '';
  position: absolute;
  top: 0; left: 14px; right: 14px;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--paper-dim) 0 6px, transparent 6px 11px);
}
.chain.is-visible .chain__stub {
  opacity: 1;
  transform: translateY(0);
}
.chain__code {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.3;
  letter-spacing: 0.06em;
  color: var(--seal);
  min-height: 2.6em;
}
.chain__title {
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 680;
  font-size: 1.08rem;
  line-height: 1.25;
  margin-top: 6px;
  min-height: 2.5em;
}
.chain__desc {
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #4a4030;
}

.credo {
  padding: 100px 0;
  background: var(--ink-2);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.credo__mark {
  display: block;
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 20px;
}
.credo__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.5;
  color: var(--text-hi);
}
.credo__attr {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-lo-2);
}

.features {
  padding: 110px 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.features__grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 40px;
}
.feature__stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--verify);
  border-radius: 50%;
  color: var(--verify);
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.feature h3 {
  font-family: var(--font-display);
  font-weight: 680;
  font-size: 1.2rem;
  color: var(--text-hi);
}
.feature p {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--text-lo);
}

.cta-final {
  padding: 130px 0;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  border-top: 1px solid var(--rule);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-final__title {
  font-family: var(--font-display);
  font-weight: 680;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.cta-final__sub {
  margin-top: 18px;
  color: var(--text-lo);
  font-size: 1.05rem;
}
.cta-final .btn { margin-top: 34px; }
.cta-final__contact {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-lo-2);
}
.cta-final__contact a {
  color: var(--gold-hi);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer { padding: 40px 0 56px; border-top: 1px solid var(--rule); }
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 680;
  color: var(--text-hi);
}
.footer__logo { width: 22px; height: 22px; object-fit: contain; opacity: 0.9; }
.footer__mgp {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer__mgp-logo { width: 20px; height: 20px; object-fit: contain; opacity: 0.85; }
.footer__legal {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-lo-2);
}

.section-nav {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 35;
  display: none;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 900px) {
  .section-nav { display: flex; }
}
.section-nav__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--text-lo-2);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.section-nav__dot:hover {
  border-color: var(--gold-hi);
  transform: scale(1.25);
}
.section-nav__dot.is-active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.35);
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 64px; text-align: left; }
  .hero__stamp-stage { order: -1; aspect-ratio: 16/10; margin-bottom: 8px; }
  .stamp, .hero__ink-ring { width: 220px; height: 220px; }
  .stamp__mark { width: 110px; height: 110px; }
  .compare__grid { grid-template-columns: 1fr; }
  .chain__list { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .chain__list { grid-template-columns: 1fr; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .section__inner { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stamp, .hero__ink-ring, .hero__headline, .hero__sub, .hero__cta, .eyebrow, .chain__stub {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .stamp__ring { animation: none !important; }
}
