/* Direction: frosted midnight — deep navy glass, geometric display type, one mint accent for offers, hires and the primary action */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  color-scheme: dark;
  --canvas: #060b1a;
  --surface: #101a33;
  --surface-2: #17233f;
  --border: #273757;
  --border-strong: #51545f;
  --ink: #e9f0ff;
  --muted: #9cadcf;
  --accent: #52efc0;
  --accent-hover: #6cf1c9;
  --accent-ink: #060b1a;
  --accent-text: #6cf2cb;
  --accent-strong: #8ef7d9;
  --accent-soft: #113430;
  --accent-border: #287265;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #092522;
  --success-strong: #499c68;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #2c1b16;
  --warning-strong: #c57a40;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #2d0f1a;
  --danger-strong: #d16969;
  --chart-1: #52efc0;
  --chart-2: #58cdfe;
  --chart-3: #b5aafc;
  --chart-4: #fe98cb;
  --chart-5: #fe9558;
  --chart-6: #c5c544;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: -0.02em;
  --radius-card: 18px;
  --radius-btn: 12px;
  --radius-input: 12px;
  --card-pad: 1.1rem;
  --shadow-card: 0 24px 60px -32px rgba(3, 7, 18, 0.85);
  --x-glow: rgba(82, 239, 192, 0.34);
  --x-glow-line: rgba(130, 255, 215, 0.28);
  --x-grid-line: rgba(156, 173, 207, 0.1);
  --gradient-page: linear-gradient(170deg, #091331 0%, #060b1a 46%, #040814 100%);
  --gradient-halo: radial-gradient(1100px 520px at 78% -8%, rgba(82, 239, 192, 0.16), transparent 70%), radial-gradient(900px 480px at 6% 2%, rgba(70, 116, 255, 0.2), transparent 72%);
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="light"] {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3f4;
  --border: #dcdddf;
  --border-strong: #b4b6ba;
  --ink: #060b1a;
  --muted: #6a6d76;
  --accent: #4bdcb1;
  --accent-hover: #40bb96;
  --accent-ink: #060b1a;
  --accent-text: #297963;
  --accent-strong: #297963;
  --accent-soft: #e6faf4;
  --accent-border: #aeefdc;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #e3f0e8;
  --success-strong: #137638;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #f6eae1;
  --warning-strong: #a64c08;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #f7e4e4;
  --danger-strong: #b91c1c;
  --chart-1: #0ca681;
  --chart-2: #04a0d1;
  --chart-3: #7567bd;
  --chart-4: #d375a4;
  --chart-5: #ae5821;
  --chart-6: #989827;
}

.app-bg {
  background-color: var(--canvas);
  background-image: var(--gradient-halo), var(--gradient-page);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* page entrance */
.fade-in {
  animation: shl-fade 0.5s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}
@keyframes shl-fade {
  from {
    opacity: 0.4;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* frosted card that lifts and glows */
.glow {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.glow:hover,
.glow:focus-within {
  transform: translateY(-3px);
  border-color: var(--x-glow-line);
  box-shadow: 0 22px 54px -22px var(--x-glow), 0 0 0 1px var(--x-glow-line);
}
html.reduced-motion .fade-in,
html.reduced-motion .glow:hover,
html.reduced-motion .glow:focus-within {
  animation: none;
  transform: none;
}

/* funnel bars rest at full width and grow in from a shorter offset */
.funnel-bar {
  transform-origin: left center;
  animation: shl-grow 0.6s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}
@keyframes shl-grow {
  from {
    transform: scaleX(0.45);
    opacity: 0.55;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
html.reduced-motion .funnel-bar {
  animation: none;
}

.rule-grid {
  background-image: linear-gradient(to right, var(--x-grid-line) 1px, transparent 1px);
  background-size: 64px 100%;
}

.board-scroll::-webkit-scrollbar {
  height: 8px;
}
.board-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

/* hire celebration */
.confetti {
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow: hidden;
  pointer-events: none;
}
.confetti i {
  position: absolute;
  top: -8vh;
  left: var(--x, 50%);
  display: block;
  width: 8px;
  height: 15px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.95;
  animation: shl-fall 2.2s var(--d, 0s) cubic-bezier(0.3, 0.6, 0.4, 1) forwards;
}
.confetti i:nth-child(3n) {
  background: var(--accent-strong);
}
.confetti i:nth-child(4n) {
  background: var(--ink);
  width: 8px;
  height: 8px;
  border-radius: 999px;
}
@keyframes shl-fall {
  to {
    transform: translateY(114vh) rotate(720deg);
    opacity: 0.1;
  }
}
html.reduced-motion .confetti {
  display: none;
}
