/* Sebelumnya file ini di-generate dari Tailwind v4 (@theme/@utility) yang butuh
   proses build Vite. Sekarang ditulis sebagai CSS biasa (custom properties +
   beberapa utility class) supaya jalan tanpa build step apa pun — Tailwind
   dipakai lewat CDN (lihat views/layout.ejs) hanya untuk utility spacing/flex/grid. */

:root {
  --radius: 0.75rem;
  --background: oklch(0.16 0.03 258);
  --foreground: oklch(0.96 0.01 250);
  --card: oklch(0.21 0.032 258);
  --card-foreground: oklch(0.96 0.01 250);
  --popover: oklch(0.2 0.032 258);
  --popover-foreground: oklch(0.96 0.01 250);
  --primary: oklch(0.78 0.13 235);
  --primary-foreground: oklch(0.17 0.04 258);
  --secondary: oklch(0.27 0.035 258);
  --secondary-foreground: oklch(0.94 0.01 250);
  --muted: oklch(0.25 0.03 258);
  --muted-foreground: oklch(0.7 0.025 252);
  --accent: oklch(0.72 0.16 300);
  --accent-foreground: oklch(0.16 0.03 258);
  --destructive: oklch(0.63 0.21 22);
  --destructive-foreground: oklch(0.98 0 0);
  --border: oklch(0.31 0.03 258);
  --input: oklch(0.28 0.03 258);
  --ring: oklch(0.78 0.13 235);

  --gradient-hero: radial-gradient(1200px 600px at 50% -20%, oklch(0.45 0.15 250 / 0.55), transparent 70%),
    radial-gradient(800px 400px at 90% 10%, oklch(0.5 0.16 300 / 0.25), transparent 70%);
  --gradient-brand: linear-gradient(120deg, oklch(0.85 0.11 225), oklch(0.75 0.15 285));
  --shadow-glow: 0 0 0 1px oklch(0.78 0.13 235 / 0.18), 0 20px 60px -20px oklch(0.5 0.18 250 / 0.55);
  --shadow-card: 0 12px 40px -18px oklch(0.1 0.03 258 / 0.9);
}

* {
  border-color: var(--border);
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

.surface {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.3125rem;
  box-shadow: var(--shadow-card);
}

.brand-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-bg {
  background-image: var(--gradient-hero);
}

.glow {
  box-shadow: var(--shadow-glow);
}

.btn-base {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.9375rem;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.6rem 1.1rem;
  border: none;
  transition: transform 0.15s ease, filter 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
  line-height: 1.2;
}
.btn-base:active {
  transform: scale(0.96);
}
.btn-base:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--gradient-brand);
  color: oklch(0.15 0.03 258);
}

.btn-ghost {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-destructive {
  background-color: var(--destructive);
  color: var(--destructive-foreground);
}

.field {
  width: 100%;
  background-color: var(--input);
  border: 1px solid var(--border);
  border-radius: 0.9375rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  color: var(--foreground);
  outline: none;
  font-family: inherit;
}
.field:focus {
  border-color: var(--ring);
}

a.surface:active,
button.surface:active {
  transform: scale(0.99);
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.page-in {
  animation: page-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.stagger-in {
  animation: page-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.stagger-in:nth-child(1) { animation-delay: 0.02s; }
.stagger-in:nth-child(2) { animation-delay: 0.06s; }
.stagger-in:nth-child(3) { animation-delay: 0.1s; }
.stagger-in:nth-child(4) { animation-delay: 0.14s; }
.stagger-in:nth-child(5) { animation-delay: 0.18s; }
.stagger-in:nth-child(6) { animation-delay: 0.22s; }
.stagger-in:nth-child(n+7) { animation-delay: 0.26s; }

@keyframes text-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
.text-rise {
  animation: text-rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: var(--gradient-brand);
  transition: width 0.25s ease;
}
.nav-link:hover::after {
  width: 100%;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 1rem;
  animation: page-in 0.2s ease both;
}
.modal-card {
  animation: page-in 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.toast-stack {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(360px, 92vw);
}
.toast {
  border-radius: 0.9375rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  animation: page-in 0.2s ease both;
}
.toast.success { border-color: oklch(0.72 0.16 150 / 0.5); }
.toast.error { border-color: oklch(0.63 0.21 22 / 0.6); }

.chip {
  border-radius: 9999px;
  border: 1px solid var(--border);
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  background: transparent;
  cursor: pointer;
}
.chip.active {
  border-color: var(--primary);
  background: oklch(0.78 0.13 235 / 0.15);
  color: var(--primary);
}

::placeholder {
  color: var(--muted-foreground);
}

.icon {
  display: inline-block;
  vertical-align: -3px;
  flex-shrink: 0;
}

.btn-base .icon {
  vertical-align: -2px;
}

.skeleton {
  background: var(--card);
  border-radius: 1.3125rem;
  opacity: 0.6;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.75; }
}
