
/* =========================================
   CEKFAKTA LMS MAINTENANCE
   Theme: Manual Light / Dark
   Layout: Compact Responsive
========================================= */

:root {
  color-scheme: light;

  --bg: #f7faff;
  --surface: rgba(255,255,255,.88);
  --text: #151923;
  --muted: #64748b;
  --line: #e5eaf1;

  --accent: #168DE0;
  --accent-2: #e1f3fc;
  --blue: #168DE0;
  --cyan: #24B7E8;
  --purple: #A64BBA;
  --magenta: #D94B9B;

  --gradient: linear-gradient(
    110deg,
    var(--blue),
    var(--cyan),
    var(--purple),
    var(--magenta)
  );

  --shadow: 0 20px 60px rgba(22,80,140,.09);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #101722;
  --surface: rgba(25,37,53,.92);
  --text: #edf4fa;
  --muted: #a1b0c2;
  --line: #2b3b4e;

  --accent: #48aef0;
  --accent-2: #19354b;
  --blue: #48aef0;
  --cyan: #42c8e8;
  --purple: #c17bd0;
  --magenta: #ec79b6;

  --shadow: 0 20px 60px rgba(0,0,0,.28);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  transition: background .25s, color .25s;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}

body::before {
  width: 460px;
  height: 460px;
  left: -240px;
  top: 18%;
  background: radial-gradient(
    circle,
    rgba(22,141,224,.13),
    transparent 68%
  );
}

body::after {
  width: 520px;
  height: 520px;
  right: -280px;
  bottom: -180px;
  background: radial-gradient(
    circle,
    rgba(166,75,186,.12),
    transparent 68%
  );
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  min-height: 100vh;
  margin: auto;
  display: flex;
  flex-direction: column;
}

/* HEADER */

.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* LOGO */

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: inherit;
  text-decoration: none;
  background: transparent !important;
  transform: none !important;
}

.brand-mark {
  width: auto !important;
  height: auto !important;
  display: block;
  flex: none;
  padding: 0 !important;
  margin: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.brand-mark img {
  display: block;
  width: 116px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  background: transparent;
  transform: none !important;
}

.brand-copy {
  display: block;
  margin: 0;
  padding: 0;
  background: transparent;
  text-align: center;
}

.brand-copy strong {
  display: none !important;
}

.brand-copy small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 1.3;
  white-space: nowrap;
}

/* HEADER ACTIONS */

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* THEME AND LANGUAGE BUTTONS */

.theme-toggle,
.language-toggle {
  min-height: 36px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: 700 12px "DM Sans", sans-serif;
  cursor: pointer;
  transition:
    border-color .2s,
    background .2s,
    color .2s,
    transform .2s;
}

.theme-toggle:hover,
.language-toggle:hover {
  border-color: var(--accent);
}

.theme-toggle:active,
.language-toggle:active {
  transform: scale(.97);
}

.theme-icon {
  font-size: 16px;
  line-height: 1;
  color: var(--accent);
}

.globe {
  font-size: 17px;
  color: var(--accent);
}

/* MAIN */

main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 18px 0 24px;
}

.maintenance-card {
  width: min(720px, 100%);
  text-align: center;
  padding: 0 24px;
}

/* ILLUSTRATION */

.visual {
  height: 178px;
  width: 270px;
  margin: 0 auto 12px;
  position: relative;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(22,141,224,.17);
  border-radius: 50%;
}

.orbit-one {
  width: 125px;
  height: 125px;
}

.orbit-two {
  width: 175px;
  height: 175px;
  border-style: dashed;
  animation: spin 32s linear infinite;
}

.orbit-three {
  width: 230px;
  height: 230px;
  border-color: rgba(217,75,155,.10);
}

.tool-card {
  width: 145px;
  height: 112px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: visible;
  position: relative;
  transform: rotate(-5deg);
  animation: float 5s ease-in-out infinite;
}

.tool-top {
  height: 21px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 9px;
}

.tool-top i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c4ced8;
}

.tool-content {
  display: flex;
  height: 90px;
  padding: 11px 10px;
  gap: 10px;
}

.tool-sidebar {
  width: 22px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tool-sidebar b {
  width: 10px;
  height: 5px;
  border-radius: 4px;
  background: var(--accent-2);
}

.tool-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 1px;
}

.tool-lines span {
  height: 6px;
  border-radius: 5px;
  background: var(--line);
}

.tool-lines span:first-child {
  width: 72%;
  height: 9px;
  background: var(--accent-2);
}

.tool-lines span:nth-child(2) {
  width: 95%;
}

.tool-lines span:nth-child(3) {
  width: 82%;
}

.tool-lines span:nth-child(4) {
  width: 90%;
}

.tool-lines span:nth-child(5) {
  width: 55%;
}

.tool-check {
  position: absolute;
  right: -17px;
  bottom: -14px;
  width: 39px;
  height: 39px;
  border: 4px solid var(--bg);
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 700;
  animation: pulse 2.4s ease-in-out infinite;
}

/* DECORATION */

.spark {
  position: absolute;
  color: var(--accent);
  font-size: 25px;
  animation: twinkle 3s ease-in-out infinite;
}

.spark-one {
  top: 24px;
  right: 42px;
}

.spark-two {
  left: 34px;
  bottom: 30px;
  animation-delay: 1s;
}

.floating-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--magenta);
}

.dot-a {
  top: 34px;
  left: 60px;
}

.dot-b {
  right: 32px;
  bottom: 28px;
  width: 5px;
  height: 5px;
  background: var(--cyan);
}

/* STATUS */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.25px;
  background: var(--surface);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d69a43;
  box-shadow: 0 0 0 4px rgba(214,154,67,.13);
}

/* TYPOGRAPHY */

.eyebrow {
  margin: 15px 0 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

h1 {
  margin: 0;
  font: 800 clamp(30px,4.5vw,44px)/1.15
    "Plus Jakarta Sans", sans-serif;
  letter-spacing: -1.8px;
}

h1 em {
  font-style: normal;
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.description {
  max-width: 540px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.description.secondary {
  margin-top: 3px;
  font-size: 12px;
}

/* PROGRESS */

.progress-area {
  max-width: 440px;
  margin: 19px auto 0;
  text-align: left;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 7px;
}

.progress-dots {
  display: flex;
  gap: 4px;
}

.progress-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.2s infinite;
}

.progress-dots i:nth-child(2) {
  animation-delay: .2s;
}

.progress-dots i:nth-child(3) {
  animation-delay: .4s;
}

.progress-track {
  height: 5px;
  border-radius: 9px;
  background: var(--line);
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: 9px;
  background: var(--gradient);
  animation: progress 3.2s ease-in-out infinite;
}

/* HELP PANEL */

.help-panel {
  max-width: 520px;
  margin: 20px auto 0;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.help-icon {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-2);
  color: var(--accent);
  font-weight: 800;
}

.help-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.help-copy strong {
  font-size: 12px;
}

.help-copy span {
  font-size: 10px;
  color: var(--muted);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.contact-link:hover {
  text-decoration: underline;
}

/* FOOTER */

.site-footer {
  min-height: 62px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 10px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.social-links {
  display: flex;
  gap: 7px;
}

.social-links a {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.social-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ACCESSIBILITY */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 10px;
  z-index: 5;
}

.skip-link:focus {
  left: 8px;
}

/* ANIMATIONS */

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

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(-5deg);
  }

  50% {
    transform: translateY(-8px) rotate(-3deg);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(22,141,224,.25);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(22,141,224,0);
  }
}

@keyframes twinkle {
  0%, 100% {
    opacity: .45;
    transform: scale(.85);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@keyframes blink {
  0%, 80%, 100% {
    opacity: .25;
  }

  40% {
    opacity: 1;
  }
}

@keyframes progress {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(290%);
  }
}

/* RESPONSIVE TABLET */

@media (max-width: 800px) {
  .page-shell {
    width: calc(100% - 36px);
  }

  main {
    padding: 16px 0 22px;
  }

  .maintenance-card {
    padding: 0 12px;
  }

  .visual {
    height: 165px;
    margin-bottom: 9px;
  }

  .orbit-three {
    width: 215px;
    height: 215px;
  }

  .progress-area {
    margin-top: 17px;
  }

  .help-panel {
    margin-top: 18px;
  }
}

/* RESPONSIVE MOBILE */

@media (max-width: 600px) {
  .page-shell {
    width: calc(100% - 32px);
  }

  .site-header {
    min-height: 72px;
    gap: 8px;
  }

  .brand {
    gap: 2px;
  }

  .brand-mark img {
    width: 96px;
  }

  .brand-copy small {
    font-size: 7px;
    letter-spacing: 1px;
  }

  .header-actions {
    gap: 6px;
  }

  .theme-toggle,
  .language-toggle {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .maintenance-card {
    padding: 0 2px;
  }

  main {
    padding: 8px 0 18px;
  }

  .visual {
    width: 250px;
    height: 145px;
    transform: scale(.86);
    margin-bottom: 0;
  }

  .orbit-one {
    width: 115px;
    height: 115px;
  }

  .orbit-two {
    width: 165px;
    height: 165px;
  }

  .orbit-three {
    width: 215px;
    height: 215px;
  }

  .spark-one {
    top: 16px;
    right: 35px;
  }

  .spark-two {
    left: 28px;
    bottom: 25px;
  }

  .dot-a {
    top: 26px;
    left: 48px;
  }

  .dot-b {
    right: 25px;
    bottom: 22px;
  }

  .status-pill {
    padding: 6px 10px;
    font-size: 9px;
  }

  .eyebrow {
    margin: 11px 0 7px;
    font-size: 9px;
    letter-spacing: 1.5px;
  }

  h1 {
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.15;
    letter-spacing: -1.3px;
  }

  .description {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.6;
  }

  .description.secondary {
    margin-top: 3px;
    font-size: 12px;
  }

  .progress-area {
    margin-top: 16px;
  }

  .progress-label {
    font-size: 10px;
    margin-bottom: 7px;
  }

  .help-panel {
    margin-top: 17px;
    padding: 11px 12px;
    gap: 10px;
    border-radius: 13px;
  }

  .help-icon {
    width: 30px;
    height: 30px;
  }

  .help-copy {
    min-width: calc(100% - 50px);
  }

  .help-copy strong {
    font-size: 11px;
  }

  .help-copy span {
    font-size: 10px;
    line-height: 1.4;
  }

  .contact-link {
    min-height: 36px;
    margin-left: 40px;
    font-size: 11px;
  }

  .site-footer {
    min-height: auto;
    padding: 13px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    font-size: 10px;
  }

  .footer-right {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
}

/* SHORT MOBILE SCREENS */

@media (max-width: 600px) and (max-height: 740px) {
  .site-header {
    min-height: 64px;
  }

  .brand-mark img {
    width: 86px;
  }

  main {
    padding: 4px 0 12px;
  }

  .visual {
    height: 125px;
    transform: scale(.76);
  }

  .eyebrow {
    margin-top: 7px;
  }

  .description {
    margin-top: 8px;
  }

  .progress-area {
    margin-top: 13px;
  }

  .help-panel {
    margin-top: 13px;
  }

  .site-footer {
    padding: 10px 0;
  }
}

/* SHORT DESKTOP SCREENS */

@media (min-width: 601px) and (max-height: 800px) {
  .site-header {
    min-height: 68px;
  }

  main {
    padding: 10px 0 14px;
  }

  .brand-mark img {
    width: 104px;
  }

  .visual {
    height: 150px;
    margin-bottom: 8px;
  }

  .orbit-three {
    width: 210px;
    height: 210px;
  }

  .eyebrow {
    margin-top: 10px;
    margin-bottom: 6px;
  }

  .description {
    margin-top: 9px;
  }

  .progress-area {
    margin-top: 14px;
  }

  .help-panel {
    margin-top: 14px;
    padding: 10px 14px;
  }

  .site-footer {
    min-height: 54px;
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
