/* =============================================================================
   JobsBanana Design System — modeled faithfully after appbanana.io
   ============================================================================= */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter/InterVariable.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter/InterVariable-Italic.woff2") format("woff2");
}

:root {
  --brand: #fff000;
  --brand-hover: #fddc03;
  --brand-active: #ddc800;
  --on-brand: #000000;

  --link: #0066cc;
  --accent: #0071e3;
  --accent-hover: #0077ed;

  --heading: #1d1d1f;
  --body: #6e6e73;
  --subtle: #86868b;
  --faint-strong: #a1a1a6;
  --faint: #c7c7cc;
  --line: #d2d2d7;

  --surface: #f5f5f7;
  --surface-hover: #ebebed;
  --hairline: #e8e8ed;

  --success: #1d7a3e;
  --success-surface: #e8f5ec;

  --notice: #FFE600;
  --notice-fg: #0f172a;
  --ab-header-h: 108px;
}

html {
  scroll-behavior: smooth;
  color-scheme: light only;
}

body {
  background: #ffffff;
  color: var(--heading);
  font-family: "Inter", "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #bfdbfe;
  color: #0f172a;
}

.jb-nums {
  font-variant-numeric: tabular-nums;
}

/* Honeypot trap — invisible to real users */
.jb-hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Aurora orb animations from appbanana/globals.css */
@keyframes vOrb1 {
  0%, 100% { transform: translate3d(0px, 0px, 0) scale3d(1, 1, 1); }
  33% { transform: translate3d(100px, 60px, 0) scale3d(1.1, 1.1, 1); }
  66% { transform: translate3d(-50px, 100px, 0) scale3d(0.92, 0.92, 1); }
}

@keyframes vOrb2 {
  0%, 100% { transform: translate3d(0px, 0px, 0) scale3d(1, 1, 1); }
  33% { transform: translate3d(-120px, 70px, 0) scale3d(1.12, 1.12, 1); }
  66% { transform: translate3d(60px, -40px, 0) scale3d(0.95, 0.95, 1); }
}

@keyframes vOrb3 {
  0%, 100% { transform: translate3d(-50%, 0px, 0) scale3d(1, 1, 1); }
  50% { transform: translate3d(-50%, -60px, 0) scale3d(1.08, 1.08, 1); }
}

@keyframes fadeInLcp {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes ctaGlow {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}

.animate-v-orb-1 {
  animation: vOrb1 9s ease-in-out infinite;
  will-change: transform;
}

.animate-v-orb-2 {
  animation: vOrb2 12s ease-in-out infinite;
  will-change: transform;
}

.animate-v-orb-3 {
  animation: vOrb3 14s ease-in-out infinite;
  will-change: transform;
}

.animate-fade-in-lcp {
  opacity: 0;
  animation: fadeInLcp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 80ms; }
.delay-200 { animation-delay: 160ms; }
.delay-300 { animation-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .animate-v-orb-1,
  .animate-v-orb-2,
  .animate-v-orb-3,
  .animate-fade-in-lcp,
  .animate-ping,
  .animate-pulse {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* Premium 3D Skeuomorphic Button Style (verbatim aesthetic from appbanana globals.css) */
.btn-premium-3d {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgb(16 190 255) 0%, rgb(61 117 255) 55%, rgb(42 127 255) 100%);
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    inset 0 8px 16px 0 rgba(255, 255, 255, 0.2),
    inset 0 -12px 16px -4px rgba(0, 0, 0, 0.36),
    0 8px 16px 0 rgba(0, 0, 0, 0.12),
    0 2px 4px 0 rgba(0, 0, 0, 0.06);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-premium-3d:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 10px 20px 0 rgba(255, 255, 255, 0.25),
    inset 0 -12px 16px -4px rgba(0, 0, 0, 0.28),
    0 12px 24px 0 rgba(37, 99, 235, 0.32),
    0 4px 8px 0 rgba(0, 0, 0, 0.1);
}

.btn-premium-3d:active {
  transform: translateY(0);
  background: linear-gradient(135deg, #0891b2 0%, #1d4ed8 55%, #1e40af 100%);
  box-shadow:
    inset 0 4px 8px 0 rgba(255, 255, 255, 0.15),
    inset 0 -8px 12px -3px rgba(0, 0, 0, 0.5),
    0 6px 14px 0 rgba(37, 99, 235, 0.22);
}

.btn-premium-3d:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 640px) {
  .btn-premium-3d {
    box-shadow:
      inset 0 4px 8px 0 rgba(255, 255, 255, 0.15),
      inset 0 -5px 8px -2px rgba(0, 0, 0, 0.35),
      0 4px 8px 0 rgba(0, 0, 0, 0.08),
      0 1px 2px 0 rgba(0, 0, 0, 0.04);
  }
}

/* Floating frosted pill navbar */
.jb-navbar {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.jb-navbar.is-scrolled {
  width: calc(100% - 2rem);
  max-width: 64rem;
  margin-top: 0.75rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(210, 210, 215, 0.65);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  padding: 0.625rem 1.25rem;
}

@media (min-width: 640px) {
  .jb-navbar.is-scrolled {
    width: calc(100% - 3rem);
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
  }
}

/* Apple-clean inputs */
.jb-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d2d2d7;
  background: #ffffff;
  color: #1d1d1f;
  padding: 0.65rem 0.875rem;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jb-input::placeholder {
  color: #86868b;
}

.jb-input:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.14);
}

.jb-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}

/* Dropzone */
.jb-dropzone {
  border: 1.5px dashed #d2d2d7;
  background: #f5f5f7;
  border-radius: 16px;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.jb-dropzone:hover,
.jb-dropzone.is-dragover {
  border-color: #0071e3;
  background: #f0f7ff;
}

/* Role card hover */
.jb-role-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.jb-role-card:hover {
  transform: translateY(-2px);
  border-color: #c7c7cc;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.08);
}
