/* Kariver — coming soon page (melengkapi style.css) */
.cs {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  position: relative; isolation: isolate; overflow-x: hidden;
}
.cs__grid { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; }
.cs::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 70% 45%, transparent 0, transparent 35%, rgba(10, 25, 47, .7) 85%);
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* top + foot */
.cs__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 14px; }
.cs__top img { height: 26px; width: auto; }
.cs__status { gap: 8px; }
.cs__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 12px; padding-bottom: 18px; font-size: 13px; color: var(--slate-l);
}
.cs__tagline { color: var(--teal); font-weight: 500; font-size: 15px; }

/* layout */
.cs__main {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 56px; align-items: center; padding-top: 8px; padding-bottom: 8px;
}
.cs__copy { display: flex; flex-direction: column; gap: 22px; }

/* entrance */
.cs-in { opacity: 0; animation: fadeUp .8s var(--ease) var(--d, 0s) forwards; }

.cs__title { font-size: clamp(46px, min(6.4vw, 10vh), 92px); font-weight: 800; letter-spacing: -.045em; line-height: .95; }
.cs__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.cs__title .word { display: inline-block; white-space: nowrap; transform: translateY(105%); animation: rise .9s var(--ease) forwards; }
.cs__title .line:nth-child(1) .word { animation-delay: .15s; }
.cs__title .line:nth-child(2) .word { animation-delay: .27s; }
.cs__title .line:nth-child(3) .word { animation-delay: .39s; }
.cs__title .accent { color: var(--teal); animation: blink 1.1s steps(1) 1.6s infinite; }
.cs__lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--slate-l); max-width: 480px; }

/* mark */
.cs__mark { position: relative; justify-self: center; width: min(100%, 420px, 58vh); aspect-ratio: 1; transition: transform .4s var(--ease); }
.cs__mark .hero-mark { animation: glitch 7s steps(1) 3s infinite; }
.cs__scan {
  position: absolute; left: 6%; right: 6%; height: 2px; top: 10%;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  box-shadow: 0 0 16px rgba(0, 245, 212, .7); opacity: 0;
  animation: scan 3.6s var(--ease) 2.4s infinite;
}
.cs__mark .chip--a { top: 10%; right: 6%; }
.cs__mark .chip--c { bottom: 6%; left: 2%; right: auto; color: var(--slate-l); }

/* terminal */
.term {
  width: 100%; max-width: 520px; position: relative;
  border-radius: 14px; overflow: hidden; background: rgba(8, 19, 36, .9);
  border: 1px solid var(--navy-3); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6);
  backdrop-filter: blur(10px);
}
.term__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--navy-3); }
.term__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--navy-3); }
.term__bar i:first-child { background: var(--teal); }
.term__bar span { margin-left: 8px; font: 500 12px var(--mono); color: var(--slate-l); letter-spacing: .04em; }
.redact { color: var(--navy-3); margin: 0 !important; letter-spacing: -.05em; }
.term__body {
  margin: 0; padding: 14px 18px 12px; height: 11.2em; overflow: hidden;
  font: 400 13px/1.6 var(--mono); color: var(--slate-l); white-space: pre;
}
.term__body .p { color: var(--teal); }
.term__body .ok { color: var(--teal); }
.term__body .hl { color: var(--plat); }
.term__body .warn { color: #FCD34D; }
.term__body .x { color: var(--teal); text-shadow: 0 0 8px rgba(0, 245, 212, .55); }
.term__body .dim { color: var(--slate); }
.term__body .cur { display: inline-block; width: 7px; height: 14px; background: var(--teal); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.term__progress { height: 3px; background: var(--navy-3); overflow: hidden; position: relative; }
.term__progress span {
  position: absolute; top: 0; bottom: 0; width: 35%;
  background: var(--teal); box-shadow: 0 0 10px rgba(0, 245, 212, .7);
  animation: indeterminate 2.2s var(--ease) infinite;
}

@keyframes scan { 0% { top: 8%; opacity: 0; } 15% { opacity: .9; } 85% { opacity: .9; } 100% { top: 90%; opacity: 0; } }
@keyframes indeterminate { 0% { left: -35%; } 100% { left: 100%; } }
@keyframes glitch {
  0%, 93%, 100% { transform: none; filter: none; }
  94% { transform: translate(-3px, 1px) skewX(-4deg); filter: drop-shadow(3px 0 0 rgba(0, 245, 212, .7)); }
  95% { transform: translate(2px, -1px); filter: drop-shadow(-3px 0 0 rgba(0, 245, 212, .5)); }
  96% { transform: translate(-1px, 0) skewX(3deg); filter: none; }
  97% { transform: none; }
}

@media (max-width: 900px) {
  .cs__main { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 0; }
  .cs__mark { order: -1; width: min(56%, 240px); margin-bottom: -12px; }
  .cs__mark .chip { display: none; }
  .term { max-width: none; }
}
@media (max-width: 420px) {
  .cs__status { display: none; }
  .term__body { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-in { opacity: 1; }
  .cs__scan { display: none; }
  .cs__mark .hero-mark { animation: none; }
  .term__progress span { left: 0; width: 60%; }
}
