

:root {

  --font-display: "Jost", "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --color-bg-0: #050a15;                
  --color-bg-1: #0a1724;                
  --color-bg-2: #1b2d4b;                
  --color-bg-3: #335270;                
  --color-bg-4: oklch(43% 0.048 250);   

  --color-border-hairline: oklch(100% 0 0 / 0.06);
  --color-border-strong:   oklch(100% 0 0 / 0.13);
  --color-border-focus:    oklch(78% 0.14 230 / 0.7);

  --color-fg-heading: oklch(99% 0 0);          
  --color-fg-body:    oklch(99% 0 0 / 0.88);
  --color-fg-muted:   oklch(99% 0 0 / 0.62);
  --color-fg-faint:   oklch(99% 0 0 / 0.38);

  --color-accent:           #4c78a4;              
  --color-accent-strong:    #4390b6;
  
  --color-symbol:           #d5deea;  
  --f1-akzent:              #c07a52;
  
  --color-accent-text:      var(--color-accent-strong);
  --color-accent-text-hover: #6a9fd0;
  --color-accent-dim:       oklch(64% 0.15 230);  
  --color-accent-fg:        oklch(16% 0.04 240);  
  --color-secondary:        oklch(78% 0.12 190);  
  --color-secondary-strong: oklch(84% 0.11 190);  

  --color-status-draft:         oklch(72% 0.04 250);  
  --color-status-submitted:     oklch(78% 0.14 230);  
  --color-status-scheduled:     oklch(72% 0.15 270);  
  --color-status-reviewing:     oklch(78% 0.14 200);  
  --color-status-revised:       oklch(76% 0.18 45);   
  --color-status-in-production: oklch(80% 0.18 185);  
  --color-status-ready:         oklch(78% 0.17 155);  
  --color-status-closed:        oklch(58% 0.02 250);  
  --color-violet:               oklch(72% 0.2 310);   

  --color-danger:  oklch(70% 0.2 25);    
  --color-success: oklch(78% 0.17 155);  

  --radius-xs: 8px;    
  --radius-sm: 12px;   
  --radius-md: 16px;   
  --radius-lg: 22px;   
  --radius-xl: 28px;
  --radius-2xl: 36px;

  --shadow-elev-1: 0 1px 0 0 oklch(100% 0 0 / 0.04) inset, 0 2px 8px -2px oklch(0% 0 0 / 0.4);
  --shadow-elev-2: 0 1px 0 0 oklch(100% 0 0 / 0.06) inset, 0 18px 48px -16px oklch(0% 0 0 / 0.6);
  --shadow-tile:   0 1px 0 0 oklch(100% 0 0 / 0.06) inset, 0 8px 28px -12px oklch(0% 0 0 / 0.6);
  --shadow-card:   0 1px 0 0 oklch(100% 0 0 / 0.04) inset, 0 12px 36px -18px oklch(0% 0 0 / 0.55);
  --shadow-glow:   0 0 0 1px oklch(78% 0.14 230 / 0.4), 0 0 48px -8px oklch(78% 0.14 230 / 0.35);
  --shadow-btn-primary: 0 0 0 1px var(--color-accent-strong) inset, 0 4px 20px -4px oklch(86% 0.18 200 / 0.35);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  border-color: var(--color-border-hairline);
}

html {
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background-color: var(--color-bg-0);
  color: var(--color-fg-body);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  min-height: 100dvh;
  
  background-image:
    radial-gradient(ellipse 80% 50% at 15% 0%, oklch(78% 0.14 230 / 0.072), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 100%, oklch(78% 0.12 190 / 0.063), transparent 60%),
    radial-gradient(ellipse 100% 60% at 50% 50%, oklch(28% 0.04 250 / 0.4), transparent 80%);
  background-attachment: fixed;
  overflow-x: hidden;
}

::selection {
  background-color: var(--color-accent);
  color: var(--color-accent-fg);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--color-fg-heading);
  font-weight: 500;
  
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);  
  line-height: 1;
  letter-spacing: -0.035em;
}

code, kbd, pre, .font-mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum", "zero", "cv02", "cv11";
}

:focus-visible {
  outline: 2px solid var(--color-border-focus);
  outline-offset: 2px;
  border-radius: 6px;
}

input, select, textarea, button { font: inherit; }

.surface {
  background-color: color-mix(in srgb, var(--color-bg-1) 60%, transparent);
  border: 1px solid var(--color-border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elev-1);
}

.surface-elevated {
  background-color: var(--color-bg-2);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elev-2);
}

.tile {
  background-color: var(--color-bg-1);
  border: 1px solid var(--color-border-hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-tile);
}

.mono-num {
  font-family: var(--font-mono);
  font-feature-settings: "tnum", "zero";
  font-variant-numeric: tabular-nums;
}

.text-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
}

.display-font {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.display-italic {
  font-style: italic;
}

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.4;
  mix-blend-mode: overlay;
  border-radius: inherit;
}

.scroll-thin::-webkit-scrollbar { width: 10px; height: 10px; }
.scroll-thin::-webkit-scrollbar-thumb {
  background-color: oklch(100% 0 0 / 0.08);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.scroll-thin::-webkit-scrollbar-thumb:hover { background-color: oklch(100% 0 0 / 0.15); }

.tile-lift { transition: transform 320ms var(--ease-bounce), box-shadow 320ms var(--ease-out); }
.tile-lift:hover { transform: translateY(-2px); }

.stagger-in > * { opacity: 0; animation: staggerIn 620ms var(--ease-out) forwards; }
.stagger-in > *:nth-child(1) { animation-delay: 40ms; }
.stagger-in > *:nth-child(2) { animation-delay: 100ms; }
.stagger-in > *:nth-child(3) { animation-delay: 160ms; }
.stagger-in > *:nth-child(4) { animation-delay: 220ms; }
.stagger-in > *:nth-child(5) { animation-delay: 280ms; }
.stagger-in > *:nth-child(6) { animation-delay: 340ms; }
.stagger-in > *:nth-child(7) { animation-delay: 400ms; }
.stagger-in > *:nth-child(8) { animation-delay: 460ms; }
.stagger-in > *:nth-child(n + 9) { animation-delay: 520ms; }
@keyframes staggerIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.status-pulse { animation: statusPulse 2.2s var(--ease-smooth) infinite; }
@keyframes statusPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.ready-pulse-glow { animation: readyPulseGlow 1.8s var(--ease-smooth) infinite; }
@keyframes readyPulseGlow { 0%, 100% { opacity: 0.12; } 50% { opacity: 0.55; } }

.overlay-enter { animation: overlayIn 200ms var(--ease-out); }
.overlay-content { animation: overlayContentIn 360ms var(--ease-bounce); }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes overlayContentIn {
  from { opacity: 0; transform: translate(-50%, -48%) scale(0.94); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@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;
  }
  .stagger-in > * { opacity: 1 !important; }
}
