/* ===== Krox Technologies theme — official logo palette =====
   Navy #183060 · Teal #009BA4 · Sky blue #66B3DC · Gold #BFBA4A */
:root {
  --bg: #0d1b3d;
  --bg-2: #12244d;
  --card: #16294f;
  --card-2: #1b3160;
  --border: #29416f;
  --text: #eaf1fb;
  --muted: #8fa6c9;
  --accent: #00b3bd;        /* Krox teal, brightened for dark bg */
  --accent-2: #66b3dc;      /* Krox sky blue */
  --gold: #cfc75a;          /* Krox gold-green */
  --accent-dark: #0d1b3d;
  --green: #3fe0a8;
  --amber: #cfc75a;
  --red: #ff8585;
  --radius: 14px;
  --glow: 0 0 24px rgba(0, 179, 189, .3);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(102, 179, 220, .12), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(0, 155, 164, .10), transparent 60%),
    radial-gradient(700px 400px at 50% 50%, rgba(191, 186, 74, .04), transparent 70%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  animation: pageIn .5s ease both;
}
@keyframes pageIn { from { opacity: 0 } to { opacity: 1 } }
a { color: var(--accent-2); text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== Krox logo ===== */
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: .5px; }
.logo .mark {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  object-fit: cover; display: block;
  box-shadow: var(--glow);
  border: 1px solid rgba(102, 179, 220, .35);
}
.logo .krox { color: #fff; }
.logo .krox b { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo .tagline { display: block; font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; }

/* Nav */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-bottom: 1px solid var(--border);
  background: rgba(13, 27, 61, .82); backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 10; flex-wrap: wrap; gap: 8px;
}
nav .links { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Buttons & inputs */
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); cursor: pointer; font-size: 14px; font-weight: 600;
  transition: all .2s;
}
.btn:hover { border-color: var(--accent); box-shadow: var(--glow); transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border: none; color: var(--accent-dark);
  box-shadow: 0 4px 20px rgba(0, 179, 189, .4);
}
.btn.primary:hover { filter: brightness(1.1); box-shadow: 0 6px 28px rgba(102, 179, 220, .55); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.danger { color: var(--red); }
input, select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-2); color: var(--text); font-size: 14px; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 179, 189, .18); }
label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; font-weight: 600; }

/* Cards & layout */
.card {
  background: linear-gradient(180deg, rgba(102, 179, 220, .05), transparent 40%), var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { border-color: rgba(102, 179, 220, .45); }
.grid { display: grid; gap: 16px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px) { .grid.cols-4, .grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid.cols-4, .grid.cols-2 { grid-template-columns: 1fr; } }

.stat { text-align: center; padding: 18px; }
.stat .num { font-size: 32px; font-weight: 800; text-shadow: 0 0 20px rgba(0, 179, 189, .35); }
.stat .lbl { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Tabs */
.tabs { display: flex; gap: 6px; margin: 24px 0 18px; flex-wrap: wrap; }
.tab {
  padding: 9px 18px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600;
  color: var(--muted); border: 1px solid transparent; transition: all .2s;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--accent-dark); background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-color: transparent; box-shadow: var(--glow);
}

/* Job / application rows */
.job-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); margin-bottom: 10px; flex-wrap: wrap;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.job-row:hover { border-color: rgba(0, 179, 189, .5); transform: translateX(4px); box-shadow: -4px 0 0 0 var(--accent); }
.job-row .title { font-weight: 700; font-size: 15px; }
.job-row .meta { color: var(--muted); font-size: 13px; margin-top: 3px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.applied { background: rgba(47, 230, 160, .15); color: var(--green); }
.badge.needs_review, .badge.queued { background: rgba(255, 195, 92, .15); color: var(--amber); }
.badge.matched { background: rgba(102, 179, 220, .16); color: var(--accent-2); }
.badge.failed, .badge.rejected { background: rgba(255, 122, 122, .15); color: var(--red); }
.badge.interview, .badge.offer { background: rgba(0, 179, 189, .2); color: var(--accent); }
.badge.country { background: var(--card-2); color: var(--muted); }
.score-pill { font-size: 12px; color: var(--muted); }

/* ===== Landing hero ===== */
.hero { text-align: center; padding: 100px 20px 60px; position: relative; z-index: 1; }
.hero h1 { font-size: 48px; line-height: 1.15; max-width: 820px; margin: 0 auto 18px; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--gold), var(--accent));
  background-size: 250% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 5s linear infinite;
}
@keyframes gradShift { to { background-position: 200% center } }
.hero p { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto 34px; }
.hero .typed-wrap { min-height: 1.2em; display: inline; }
.cursor { display: inline-block; width: 3px; background: var(--accent); animation: blink 0.8s step-end infinite; }
@keyframes blink { 50% { opacity: 0 } }
.flags { font-size: 28px; letter-spacing: 8px; margin-bottom: 18px; animation: floatY 4s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }

/* Particle canvas + glow orbs */
#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.orb {
  position: fixed; border-radius: 50%; filter: blur(90px); opacity: .35; z-index: 0; pointer-events: none;
  animation: orbFloat 14s ease-in-out infinite;
}
.orb.o1 { width: 420px; height: 420px; background: #009ba4; top: -120px; right: -80px; }
.orb.o2 { width: 380px; height: 380px; background: #3a7fb5; bottom: -100px; left: -100px; animation-delay: -7s; }
.orb.o3 { width: 260px; height: 260px; background: #8a844a; top: 40%; left: 60%; opacity: .18; animation-delay: -4s; }
@keyframes orbFloat { 0%, 100% { transform: translate(0, 0) scale(1) } 50% { transform: translate(-50px, 40px) scale(1.15) } }

/* Light streaks */
.streak {
  position: fixed; width: 320px; height: 2px; z-index: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  animation: streakMove 7s linear infinite;
}
.streak.s2 { animation-delay: 2.4s; }
.streak.s3 { animation-delay: 4.8s; }
@keyframes streakMove {
  0% { transform: translate(-30vw, 15vh) rotate(-18deg); opacity: 0 }
  10% { opacity: .8 } 45% { opacity: .6 }
  60% { transform: translate(110vw, 55vh) rotate(-18deg); opacity: 0 }
  100% { opacity: 0 }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .1s } .reveal.d2 { transition-delay: .22s } .reveal.d3 { transition-delay: .34s }

.features { padding: 30px 0 40px; position: relative; z-index: 1; }
.feature h3 { margin-bottom: 8px; font-size: 17px; }
.feature p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.feature:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(0, 0, 0, .4), var(--glow); }

/* Count-up stats band */
.statband { position: relative; z-index: 1; padding: 10px 0 70px; }
.statband .num { font-size: 38px; font-weight: 900; background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.statband .lbl { color: var(--muted); font-size: 13px; margin-top: 2px; }

footer { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 26px 20px; text-align: center; color: var(--muted); font-size: 13px; }
footer b { color: var(--text); }

/* Modal */
.modal-bg {
  position: fixed; inset: 0; background: rgba(7, 14, 32, .72); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px;
}
.modal-bg.open { display: flex; }
.modal {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 30px;
  width: 100%; max-width: 420px; animation: modalIn .3s cubic-bezier(.2, .9, .3, 1.2) both;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5), var(--glow);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.96) } to { opacity: 1; transform: none } }
.modal h2 { margin-bottom: 4px; }
.modal .sub { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.error-msg { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 18px; }
.success-msg { color: var(--green); font-size: 13px; margin-top: 10px; }

.section-title { font-size: 18px; font-weight: 700; margin: 26px 0 12px; }
.muted { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 50px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
td { padding: 12px; border-bottom: 1px solid var(--border); }
tr { transition: background .15s; }
tbody tr:hover { background: rgba(102, 179, 220, .06); }
.toast {
  position: fixed; bottom: 24px; right: 24px; background: var(--card-2); border: 1px solid var(--accent);
  padding: 14px 20px; border-radius: 12px; font-size: 14px; display: none; z-index: 99; max-width: 360px;
  box-shadow: var(--glow); animation: toastIn .3s ease both;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
.toast.show { display: block; }
.pulse { animation: pulseA 1.2s infinite; }
@keyframes pulseA { 0%, 100% { opacity: 1 } 50% { opacity: .45 } }
