:root {
  --orange-50: #fff7ed;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-900: #14532d;
  --ink: #0f172a;
  --muted: #64748b;
  --surface: #ffffff;
  --radius: 1rem;
  --shadow: 0 25px 50px -12px rgba(234, 88, 12, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(
    165deg,
    var(--orange-50) 0%,
    #ecfdf5 45%,
    #ffffff 100%
  );
  min-height: 100vh;
  line-height: 1.6;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

header {
  position: relative;
  z-index: 2;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 14px rgba(15, 23, 42, 0.12));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem) 4rem;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  main {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: calc(100vh - 88px);
  }
}

.hero-copy h1 {
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 1rem;
  background: linear-gradient(120deg, var(--green-900) 0%, var(--orange-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy .lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 32rem;
  margin: 0 0 1.75rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: var(--green-700);
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.pill.orange {
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange-600);
  border-color: rgba(249, 115, 22, 0.28);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: white;
  box-shadow: 0 12px 28px -8px rgba(234, 88, 12, 0.55);
}

.btn-primary:hover {
  box-shadow: 0 16px 36px -8px rgba(234, 88, 12, 0.65);
}

.btn-secondary {
  background: var(--surface);
  color: var(--green-700);
  border: 2px solid var(--green-600);
  box-shadow: 0 4px 14px -4px rgba(22, 163, 74, 0.25);
}

.btn-secondary:hover {
  background: rgba(22, 163, 74, 0.06);
}

.hero-visual {
  position: relative;
  min-height: 280px;
}

@media (min-width: 900px) {
  .hero-visual {
    min-height: 420px;
  }
}

.card-stack {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.blob {
  position: absolute;
  width: 88%;
  height: 88%;
  left: 6%;
  top: 6%;
  border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
  background: linear-gradient(
    145deg,
    rgba(249, 115, 22, 0.35),
    rgba(22, 163, 74, 0.35)
  );
  filter: blur(2px);
  animation: morph 12s ease-in-out infinite;
}

@keyframes morph {
  0%,
  100% {
    border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
    transform: rotate(0deg);
  }
  50% {
    border-radius: 60% 40% 45% 55% / 45% 55% 40% 60%;
    transform: rotate(4deg);
  }
}

.float-card {
  position: relative;
  background: var(--surface);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(15, 23, 42, 0.06);
  z-index: 1;
}

.float-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--green-900);
}

.float-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.stat {
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--orange-50), #f0fdf4);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.stat strong {
  display: block;
  font-size: 1.25rem;
  color: var(--orange-600);
}

.stat span {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.badge-corner {
  position: absolute;
  top: -12px;
  right: 18px;
  background: var(--green-600);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 8px 20px -6px rgba(22, 163, 74, 0.5);
}

.countdown-section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3rem;
  scroll-margin-top: 1rem;
}

.countdown-inner {
  background: var(--surface);
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(22, 163, 74, 0.15);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.95),
    rgba(240, 253, 244, 0.9)
  );
}

.countdown-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange-600);
}

.countdown-inner h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  color: var(--green-900);
  letter-spacing: -0.02em;
}

.countdown-desc {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 40rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  max-width: 520px;
}

@media (max-width: 520px) {
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.countdown-unit {
  text-align: center;
  padding: 0.85rem 0.5rem;
  border-radius: 0.85rem;
  background: linear-gradient(160deg, var(--orange-50), #fff);
  border: 1px solid rgba(249, 115, 22, 0.22);
  box-shadow: 0 4px 14px -6px rgba(234, 88, 12, 0.25);
}

.countdown-value {
  display: block;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--orange-600);
  letter-spacing: -0.02em;
}

.countdown-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-700);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.countdown-target {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.countdown-target time {
  font-weight: 600;
  color: var(--ink);
}

.countdown-done {
  padding-top: 0.25rem;
}

.countdown-done-msg {
  margin: 0 0 1rem;
  color: var(--green-900);
  font-weight: 600;
  font-size: 1rem;
  max-width: 36rem;
}

.countdown-done .btn {
  margin-top: 0.25rem;
}

.section-anchor {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  scroll-margin-top: 1rem;
}

.section-anchor h2 {
  font-size: 1.15rem;
  color: var(--green-900);
  margin: 0 0 0.5rem;
}

.section-anchor p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36rem;
}

.cek-help {
  margin-top: 0.25rem;
}

.cek-form {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.9rem;
  max-width: 520px;
}

.cek-field {
  display: grid;
  gap: 0.45rem;
}

.cek-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-900);
}

.cek-input {
  width: 100%;
  appearance: none;
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: var(--ink);
  outline: none;
  transition:
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.cek-input:focus {
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18);
  background: #fff;
}

.hasil {
  margin-top: 1rem;
  max-width: 720px;
}

.hasil-card {
  border-radius: 1.1rem;
  padding: 1.25rem;
  background: var(--surface);
  box-shadow:
    0 18px 30px -18px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(15, 23, 42, 0.06);
}

.hasil-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hasil-meta {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hasil-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.75rem;
  border: 1px solid transparent;
}

.hasil-badge.lulus {
  background: rgba(22, 163, 74, 0.12);
  color: var(--green-700);
  border-color: rgba(22, 163, 74, 0.28);
}

.hasil-badge.tidak {
  background: rgba(234, 88, 12, 0.12);
  color: var(--orange-600);
  border-color: rgba(234, 88, 12, 0.28);
}

.hasil-ket {
  margin: 0.75rem 0 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.hasil-nilai {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--ink);
}

.hasil-nilai strong {
  color: var(--green-700);
  font-size: 1rem;
}

.hasil-actions {
  margin-top: 1rem;
}

.hasil-info-erapor {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: rgba(22, 163, 74, 0.07);
  border: 1px solid rgba(22, 163, 74, 0.22);
}

.hasil-info-erapor p {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: var(--ink);
}

.hasil-info-erapor p:last-child {
  margin-bottom: 0;
}

.hasil-info-erapor code {
  background: rgba(15, 23, 42, 0.07);
  padding: 0.15rem 0.45rem;
  border-radius: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-700);
  user-select: all;
}

.hasil-info-note {
  font-size: 0.8rem !important;
  color: var(--muted) !important;
  font-style: italic;
}

.hasil-error {
  border-radius: 1.1rem;
  padding: 1rem 1.25rem;
  background: rgba(234, 88, 12, 0.08);
  border: 1px solid rgba(234, 88, 12, 0.22);
  color: var(--ink);
  font-weight: 600;
}

.hasil-locked {
  background: rgba(100, 116, 139, 0.08);
  border-color: rgba(100, 116, 139, 0.3);
  color: var(--muted);
}

.cek-note {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 46rem;
}

footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}
