:root {
  --accent: #1A5276;
  --accent-hover: #154360;
  --accent-light: #E8F1F8;
  --accent-soft: #F0F7FB;
  --ink: #0f172a;
  --text: #1f2937;
  --text-muted: #6b7280;
  --text-dim: #9ca3af;
  --border: #e5e7eb;
  --border-soft: #f1f5f9;
  --bg: #f8fafc;
  --card: #ffffff;
  --danger: #dc2626;
  --warn: #f59e0b;
  --success: #16a34a;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.05);
  --shadow: 0 4px 12px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-lg: 0 14px 40px rgba(15,23,42,0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 32px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-weight: 800; letter-spacing: -0.3px;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent); color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}
.brand-name { font-size: 17px; }
.site-nav { display: flex; gap: 24px; flex: 1; }
.site-nav a {
  color: var(--text-muted); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--ink); }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(26,82,118,0.10) 0%, transparent 50%),
    radial-gradient(circle at 88% 80%, rgba(26,82,118,0.08) 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  padding: 96px 24px 72px;
  text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--accent); margin-bottom: 16px;
}
.hero-title {
  font-size: 52px; line-height: 1.1; letter-spacing: -1.5px;
  font-weight: 800; color: var(--ink); margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px; color: var(--text-muted); margin-bottom: 28px;
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.hero-cta { display: flex; justify-content: center; gap: 12px; }

@media (max-width: 640px) {
  .hero { padding: 56px 20px 48px; }
  .hero-title { font-size: 36px; }
  .hero-sub { font-size: 16px; }
}

/* ===== Sections ===== */
.section-inner { max-width: 1200px; margin: 0 auto; padding: 64px 24px; }
.section-header { margin-bottom: 32px; }
.section-title {
  font-size: 28px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.5px; margin-bottom: 6px;
}
.section-sub { color: var(--text-muted); font-size: 15px; }

/* ===== Job grid ===== */
.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.job-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  box-shadow: var(--shadow-sm);
}
.job-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #d8e4ed;
}
.job-title {
  font-size: 18px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.2px; margin-bottom: 8px;
}
.job-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.job-summary {
  font-size: 14px; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.job-card-foot {
  display: flex; align-items: center; gap: 6px;
  color: var(--accent); font-size: 14px; font-weight: 600;
  margin-top: auto; padding-top: 10px;
}

/* ===== Pills & chips ===== */
.pill {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: var(--accent); color: white;
  text-transform: capitalize;
}
.pill-soft { background: var(--accent-light); color: var(--accent); }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid #cfe2ee;
}
.chip-must { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.chip-soft { background: #f3f4f6; color: #374151; border-color: #e5e7eb; }
.chip-more { font-size: 12px; color: var(--text-muted); padding: 4px 4px; }

/* ===== About ===== */
.about-section { background: linear-gradient(180deg, var(--bg) 0%, #ffffff 100%); }
.about-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px;
  align-items: center;
}
.about-text { color: var(--text-muted); font-size: 16px; margin-top: 14px; }
.about-stats { display: grid; grid-template-columns: 1fr; gap: 14px; }
.about-stat {
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 22px 24px;
  display: flex; align-items: baseline; gap: 18px;
  box-shadow: var(--shadow-sm);
}
.about-stat-value {
  font-size: 36px; font-weight: 800; color: var(--accent);
  letter-spacing: -1px; line-height: 1; min-width: 90px;
}
.about-stat-label { font-size: 14px; color: var(--text-muted); }
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: white;
  padding: 32px 24px;
  margin-top: 32px;
}
.site-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-muted);
  flex-wrap: wrap; gap: 12px;
}
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
  border: 1px solid transparent;
  font-family: inherit; text-decoration: none;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-ghost { background: white; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg); border-color: #cbd5e1; }
.btn-ghost-light {
  background: transparent; color: var(--ink);
  border-color: var(--border); font-size: 13px; padding: 8px 14px;
}
.btn-ghost-light:hover { background: var(--bg); }
.btn-block { width: 100%; }

/* ===== Job detail ===== */
.job-main { padding-top: 32px; padding-bottom: 32px; }
.back-link {
  color: var(--text-muted); text-decoration: none;
  font-size: 14px; display: inline-block; margin-bottom: 24px;
}
.back-link:hover { color: var(--ink); }
.job-detail {
  display: grid; grid-template-columns: 1fr 340px; gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .job-detail { grid-template-columns: 1fr; }
}
.job-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--accent); margin-bottom: 12px;
}
.job-detail-title {
  font-size: 38px; font-weight: 800; letter-spacing: -1px;
  color: var(--ink); margin-bottom: 16px;
}
.job-detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.job-detail-summary {
  font-size: 18px; color: var(--text-muted);
  margin-bottom: 32px; line-height: 1.6;
}
.job-section { margin-bottom: 28px; }
.job-section-title {
  font-size: 13px; font-weight: 700; color: var(--ink);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.job-description {
  font-family: inherit; white-space: pre-wrap;
  color: var(--text); font-size: 15px; line-height: 1.7;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 20px;
}
.job-detail-aside { position: sticky; top: 88px; }
.apply-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.apply-title {
  font-size: 18px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.2px; margin-bottom: 6px;
}
.apply-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; }
.apply-fineprint {
  font-size: 12px; color: var(--text-dim); text-align: center;
  margin-top: 14px;
}
.apply-soon {
  margin-top: 12px; padding: 10px 12px;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 8px; font-size: 13px; text-align: center;
}
.apply-error {
  background: #fdecec; color: #b42318;
}
.apply-success {
  text-align: center; padding: 8px 0 4px;
}
.apply-success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(34,197,94,0.12); color: #16a34a;
  margin-bottom: 14px;
}
.apply-success-title {
  font-size: 17px; font-weight: 700; color: var(--ink);
  margin-bottom: 6px;
}
.apply-success-sub {
  font-size: 13px; color: var(--text-muted); line-height: 1.6;
}
.hp-field {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden;
}
.divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-dim); font-size: 12px; text-transform: uppercase;
  letter-spacing: 1px; margin: 14px 0;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ===== Empty / loading ===== */
.empty-card {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 48px 24px; text-align: center;
}
.empty-title { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.empty-sub { font-size: 14px; color: var(--text-muted); }

.loading {
  padding: 80px 24px; display: flex; justify-content: center;
}
.spinner {
  width: 28px; height: 28px;
  border: 3px solid rgba(15,23,42,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner-light {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }
.mt-3 { margin-top: 12px; }

/* ===== Login page ===== */
.login-body {
  background:
    radial-gradient(circle at 10% 20%, rgba(26,82,118,0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(26,82,118,0.08) 0%, transparent 40%),
    var(--bg);
  min-height: 100vh;
}
.login-main {
  display: flex; align-items: center; justify-content: center;
  padding: 60px 24px; min-height: calc(100vh - 64px);
}
.login-card {
  width: 100%; max-width: 420px;
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}
.login-mark { text-align: center; margin-bottom: 16px; }
.login-mark-icon { width: 48px; height: 48px; font-size: 22px; border-radius: 12px; }
.login-title {
  font-size: 22px; font-weight: 700; color: var(--ink);
  text-align: center; letter-spacing: -0.3px;
}
.login-sub {
  font-size: 14px; color: var(--text-muted);
  text-align: center; margin-bottom: 24px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-input {
  padding: 11px 14px; border: 1px solid var(--border); border-radius: 9px;
  font-size: 14px; font-family: inherit; color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  background: white;
}
.form-input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,82,118,0.12);
}
.form-error {
  background: #fee2e2; color: #991b1b;
  padding: 10px 12px; border-radius: 8px;
  font-size: 13px; margin-bottom: 12px;
}
.login-fineprint {
  text-align: center; font-size: 13px; color: var(--text-muted);
  margin-top: 18px;
}
