:root {
  --blue:        #3B82F6;
  --blue-dark:   #2563EB;
  --blue-deep:   #1D4ED8;
  --yellow:      #FACC15;
  --yellow-dark: #EAB308;
  --bg:          #F8FAFC;
  --white:       #FFFFFF;
  --dark:        #0F172A;
  --gray:        #64748B;
  --gray-light:  #F1F5F9;
  --border:      #0F172A;
  --border-soft: #E2E8F0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--dark);
  font-family: 'Inter', sans-serif;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* Badge pill */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow);
  color: var(--dark);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  border: 2px solid var(--border);
  box-shadow: 2px 2px 0 var(--border);
}

/* Navbar */
.site-nav {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand-name {
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.nav-brand-name span {
  color: var(--blue);
}

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ECFDF5;
  color: #065F46;
  border: 1.5px solid #6EE7B7;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  letter-spacing: .02em;
}

.nav-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* Alert Toast */
.alert {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  z-index: 999;
  width: min(92vw, 400px);
  background: #FEF2F2;
  border: 2px solid #EF4444;
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 4px 4px 0 #EF4444;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), opacity .25s ease;
}

.alert.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.error-message {
  font-size: 13px;
  font-weight: 700;
  color: #991B1B;
  margin: 0;
}

/* Hero */
.hero-section {
  padding: 60px 0 36px;
  position: relative;
  overflow: hidden;
}

.hero-tagline {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(28px, 5.5vw, 50px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--dark);
}

.hero-tagline .underline-yellow {
  position: relative;
  display: inline-block;
}

.hero-tagline .underline-yellow::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 6px;
  background: var(--yellow);
  border-radius: 4px;
  z-index: -1;
}

.hero-sub {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray);
  line-height: 1.7;
  max-width: 460px;
}

/* Input Card */
.container-input {
  background: var(--white);
  border: 2.5px solid var(--border-soft);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  transition: border-color .2s, box-shadow .2s;
}

.container-input.border-primary {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .12);
}

.container-input.border-danger {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, .1);
}

.input-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-light);
  border: 2px solid var(--border-soft);
  border-radius: 12px;
  padding: 10px 14px;
  transition: border-color .2s;
}

.input-wrapper:focus-within {
  border-color: var(--blue);
  background: var(--white);
}

.input-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  min-width: 0;
}

.input-wrapper input::placeholder {
  color: #94A3B8;
}

.btn-paste-url {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--white);
  border: 2px solid var(--border-soft);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s;
  flex-shrink: 0;
}

.btn-paste-url:hover {
  background: var(--yellow);
  border-color: var(--border);
  box-shadow: 2px 2px 0 var(--border);
}

.btn-paste-url:active {
  transform: scale(.96);
}

/* CTA */
.continue-application {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #E2E8F0;
  color: #94A3B8;
  border: 2.5px solid var(--border-soft);
  border-radius: 14px;
  padding: 15px 24px;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: not-allowed;
  transition: all .2s;
  margin-top: 14px;
}

.continue-application.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue-deep);
  box-shadow: 3px 4px 0 var(--blue-deep);
  cursor: pointer;
}

.continue-application.active:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 3px 6px 0 var(--blue-deep);
}

.continue-application.active:active {
  transform: translateY(1px);
  box-shadow: 1px 2px 0 var(--blue-deep);
}

/* Loading state */
.continue-application.loading {
  background: var(--blue-dark) !important;
  color: var(--white) !important;
  border-color: var(--blue-deep) !important;
  box-shadow: 3px 4px 0 var(--blue-deep) !important;
  cursor: not-allowed !important;
  pointer-events: none;
}

.continue-application.loading:hover {
  transform: none !important;
}

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

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}

/* Pulse dots for loading text */
@keyframes dotBlink {
  0%, 80%, 100% { opacity: 0; transform: scale(.7); }
  40%            { opacity: 1; transform: scale(1); }
}

.dot-1, .dot-2, .dot-3 {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: dotBlink 1.2s infinite;
}

.dot-2 { animation-delay: .2s; }
.dot-3 { animation-delay: .4s; }

/* Show/hide button content states */
.btn-state-normal {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-state-loading {
  display: none;
  align-items: center;
  gap: 8px;
}

.continue-application.loading .btn-state-normal {
  display: none;
}

.continue-application.loading .btn-state-loading {
  display: flex;
}

/* Promo Banner */
.promo-banner {
  background: var(--white);
  border: 2.5px solid var(--border);
  border-radius: 20px;
  padding: 22px 26px;
  box-shadow: 4px 4px 0 var(--border);
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  position: relative;
}

.promo-badge {
  font-size: 11px;
  font-weight: 800;
  background: var(--yellow);
  color: var(--dark);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 6px;
}

.promo-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(17px, 3vw, 21px);
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 4px;
  line-height: 1.2;
}

.promo-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  margin: 0;
}

.promo-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: var(--blue);
  border: 2.5px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 0 var(--border);
  transform: rotate(3deg);
}

/* Section */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.section-eyebrow .dot-accent {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.section-title {
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin: 0;
}

.section-badge {
  margin-left: auto;
  background: var(--yellow);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: var(--dark);
  padding: 3px 12px;
  letter-spacing: .04em;
}

/* Feature Cards */
.card-feature {
  background: var(--white);
  border: 2.5px solid var(--border) !important;
  border-radius: 18px !important;
  padding: 22px !important;
  box-shadow: 3px 3px 0 var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .15s, box-shadow .15s;
}

.card-feature:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--border);
}

.icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: var(--gray-light);
}

.icon-wrapper img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.box-title {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.box-deskripsi {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray);
  line-height: 1.65;
  margin: 0;
}

/* Steps */
.step-card {
  background: var(--white);
  border: 2.5px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 3px 3px 0 var(--border);
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2.5px solid var(--border);
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-num.s1 { background: var(--yellow); color: var(--dark); }
.step-num.s2 { background: var(--blue); color: var(--white); }
.step-num.s3 { background: var(--dark); color: var(--white); }

.step-label {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 2px solid var(--border-soft);
  padding: 24px 0;
  font-size: 13px;
  color: var(--gray);
  font-weight: 600;
}

.site-footer a {
  color: var(--gray);
  text-decoration: none;
  transition: color .15s;
}

.site-footer a:hover {
  color: var(--dark);
}

/* Doodle BG */
.hero-bg-doodle {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: .14;
}

.z1 {
  position: relative;
  z-index: 1;
}
