:root {
  --bg: #07080b;
  --bg-soft: #0b0d13;
  --text: #eef1f8;
  --muted: #969dac;
  --line: rgba(255, 255, 255, 0.08);
  --cyan: #8be9ff;
  --indigo: #a5b4fc;
  --violet: #a78bfa;
  --font-display: "Space Grotesk", "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --mx: 50%;
  --my: 45%;
  --px: 0;
  --py: 0;
}

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(139, 233, 255, 0.25);
  color: #ffffff;
}

h1,
p {
  margin: 0;
}

/* ---------- Latar belakang ---------- */

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(37, 56, 92, 0.35), transparent 70%),
    var(--bg);
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 44%, #000 0%, transparent 76%);
  mask-image: radial-gradient(ellipse 78% 62% at 50% 44%, #000 0%, transparent 76%);
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.aurora-a {
  width: 46vmax;
  height: 46vmax;
  top: -18vmax;
  left: -10vmax;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 66%);
  animation: drift-a 26s ease-in-out infinite alternate;
}

.aurora-b {
  width: 52vmax;
  height: 52vmax;
  right: -18vmax;
  bottom: -22vmax;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 66%);
  animation: drift-b 32s ease-in-out infinite alternate;
}

.aurora-c {
  width: 34vmax;
  height: 34vmax;
  top: 32%;
  left: 56%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.14), transparent 66%);
  animation: drift-c 23s ease-in-out infinite alternate;
}

@keyframes drift-a {
  to {
    transform: translate3d(7vmax, 4vmax, 0) scale(1.08);
  }
}

@keyframes drift-b {
  to {
    transform: translate3d(-6vmax, -5vmax, 0) scale(1.06);
  }
}

@keyframes drift-c {
  to {
    transform: translate3d(-8vmax, 5vmax, 0) scale(1.12);
  }
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(88vmin, 60rem);
  aspect-ratio: 1;
  opacity: 0.8;
  transform: translate(-50%, -51%) translate3d(calc(var(--px) * 14px), calc(var(--py) * 14px), 0);
}

.orbit svg {
  display: block;
  width: 100%;
  height: 100%;
  animation: spin 120s linear infinite;
}

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

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 82% 66% at 50% 42%, transparent 28%, rgba(5, 6, 9, 0.55) 76%, rgba(5, 6, 9, 0.92) 100%),
    linear-gradient(180deg, rgba(5, 6, 9, 0.5) 0%, transparent 18%, transparent 80%, rgba(5, 6, 9, 0.78) 100%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s ease;
  background: radial-gradient(
    560px circle at var(--mx) var(--my),
    rgba(139, 233, 255, 0.1),
    rgba(167, 139, 250, 0.06) 38%,
    transparent 66%
  );
}

body.has-pointer .cursor-glow {
  opacity: 1;
}

/* ---------- Kerangka halaman ---------- */

.page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.1rem, 2.8vw, 1.9rem) clamp(1.25rem, 4vw, 3rem);
  animation: fade-in 0.9s ease 0.1s both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: #dfe5f0;
}

.clock {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  white-space: nowrap;
}

.clock-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(139, 233, 255, 0.7);
  animation: pulse 2.8s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(139, 233, 255, 0.45);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(139, 233, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(139, 233, 255, 0);
  }
}

.clock time {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #dbe3f0;
}

/* ---------- Hero ---------- */

.hero {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(2.5rem, 6vh, 4.5rem) 1.25rem clamp(2.5rem, 6vh, 4rem);
  text-align: center;
}

.hero-inner {
  width: 100%;
  max-width: 72rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 0.95rem 0.48rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 34px -24px rgba(139, 233, 255, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c3ccdc;
}

.badge-spark {
  width: 0.7rem;
  height: 0.7rem;
  flex: none;
  filter: drop-shadow(0 0 6px rgba(139, 233, 255, 0.55));
}

.hero h1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.2em;
  row-gap: 0.04em;
  margin-top: clamp(1.2rem, 2.4vw, 1.7rem);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 12vw, 9rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.word {
  display: inline-block;
}

.accent {
  background-image: linear-gradient(100deg, #8be9ff 0%, #a5b4fc 40%, #c4b5fd 62%, #8be9ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: sheen 12s ease-in-out infinite;
  padding-bottom: 0.04em;
}

@keyframes sheen {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .accent {
    background: none;
    color: var(--indigo);
    -webkit-text-fill-color: currentColor;
    animation: none;
  }
}

.rule {
  width: 4.5rem;
  height: 1px;
  margin: clamp(1.6rem, 3.4vw, 2.2rem) auto;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 233, 255, 0.7) 35%,
    rgba(167, 139, 250, 0.7) 65%,
    transparent
  );
}

.lede {
  max-width: 33rem;
  margin: 0 auto;
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  line-height: 1.75;
  color: var(--muted);
  text-wrap: balance;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: clamp(1.15rem, 2.8vw, 1.8rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.71rem;
  letter-spacing: 0.05em;
  color: #747c8c;
  animation: fade-in 0.9s ease 0.75s both;
}

.footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}

.footer-meta span {
  color: rgba(255, 255, 255, 0.22);
}

/* ---------- Animasi masuk ---------- */

.rise {
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0s) forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------- Responsif ---------- */

@media (max-width: 640px) {
  .site-header {
    padding-top: max(1rem, env(safe-area-inset-top));
  }

  .brand-name {
    font-size: 0.72rem;
  }

  .clock {
    padding: 0.36rem 0.68rem;
    font-size: 0.68rem;
  }

  .clock-label {
    display: none;
  }

  .hero {
    padding-inline: 1.15rem;
  }

  .orbit {
    width: min(118vmin, 60rem);
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 0.35rem;
    padding-bottom: max(1.15rem, env(safe-area-inset-bottom));
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .hero {
    padding-block: 1.5rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vh, 4.5rem);
    margin-top: 0.9rem;
  }

  .rule {
    margin-block: 1rem;
  }

  .orbit {
    width: min(80vh, 40rem);
  }
}

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

  .rise {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .cursor-glow {
    display: none;
  }
}
