/* =========================================================
   JobRoster Official Website — Deep Space Minimal
   Color tokens, typography, and component primitives
   ========================================================= */

:root {
  /* Brand */
  --brand-blue: #4D8CF5;
  --brand-blue-hover: #6BA0FF;
  --brand-blue-soft: rgba(77, 140, 245, 0.12);
  --brand-blue-glow: rgba(77, 140, 245, 0.45);

  /* Surfaces (dark) */
  --bg-0: #07070B;          /* page base */
  --bg-1: #0D0D14;          /* section alternate */
  --bg-2: #13131D;          /* card */
  --bg-3: #1A1A26;          /* card hover */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text-0: #FFFFFF;
  --text-1: #C7C9D4;
  --text-2: #8A8D9C;
  --text-3: #5B5E6C;

  /* States */
  --success: #4ADE80;
  --warning: #FBBF24;

  /* Layout */
  --max-w: 1200px;
  --gutter: 32px;
  --section-y: 120px;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Menlo', monospace;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Shadows */
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 48px -24px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 0 1px rgba(77, 140, 245, 0.25), 0 20px 60px -20px rgba(77, 140, 245, 0.45);
}

/* =========================================================
   Reset & base
   ========================================================= */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--text-0);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p { margin: 0; }
ul { list-style: none; padding: 0; margin: 0; }

/* =========================================================
   Layout helpers
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; position: relative; }
.section-tight { padding: calc(var(--section-y) * 0.6) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-blue);
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--brand-blue);
  box-shadow: 0 0 12px var(--brand-blue-glow);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(32px, 4.2vw, 48px);
  letter-spacing: -0.03em;
}
.section-head p {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.6;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-download {
  background: var(--brand-blue);
  color: #fff;
  padding: 4px 22px;
  box-shadow: 0 0 0 1px rgba(77, 140, 245, 0.4), 0 12px 32px -8px var(--brand-blue-glow);
}

.btn-primary {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(77, 140, 245, 0.4), 0 12px 32px -8px var(--brand-blue-glow);
}
.btn-primary:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-0);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
}
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: rgba(7, 7, 11, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-0);
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, #6BA0FF 100%);
  display: grid; place-items: center;
  box-shadow: 0 4px 16px -4px var(--brand-blue-glow);
}
.brand-mark svg { width: 16px; height: 16px; }
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text-0); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 140px 0 120px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(77, 140, 245, 0.28), transparent 70%),
    radial-gradient(ellipse 45% 35% at 85% 25%, rgba(120, 80, 220, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 30% at 12% 60%, rgba(77, 140, 245, 0.08), transparent 70%);
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, black 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, black 25%, transparent 78%);
}
.hero-orbit {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 880px;
  height: 880px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  border: 1px solid rgba(77, 140, 245, 0.12);
  box-shadow:
    0 0 0 1px rgba(77, 140, 245, 0) inset,
    0 0 120px -20px rgba(77, 140, 245, 0.20) inset;
}
.hero-orbit::before,
.hero-orbit::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.hero-orbit::before { transform: scale(0.66); }
.hero-orbit::after  { transform: scale(0.34); border-color: rgba(77, 140, 245, 0.22); }
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-content { display: flex; flex-direction: column; gap: 28px; align-items: center; max-width: 760px; }
.hero h1 {
  font-size: clamp(44px, 6.4vw, 76px);
  letter-spacing: -0.038em;
  line-height: 1.04;
  color: var(--text-0);
}
.hero h1 .grad {
  background: linear-gradient(120deg, #fff 0%, #fff 38%, var(--brand-blue) 62%, #8AB5FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: 20px;
  color: var(--text-1);
  max-width: 620px;
  line-height: 1.55;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--text-2);
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-meta .dot { width: 4px; height: 4px; background: var(--text-3); border-radius: 999px; }

/* =========================================================
   Core Features
   ========================================================= */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }
.feature {
  position: relative;
  padding: 32px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  gap: 16px;
  transition: all 0.25s ease;
  overflow: hidden;
}
.feature::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 60% at 50% 0%, rgba(77, 140, 245, 0.10), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.feature:hover {
  border-color: rgba(77, 140, 245, 0.35);
  transform: translateY(-2px);
}
.feature:hover::after { opacity: 1; }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-blue-soft);
  border: 1px solid rgba(77, 140, 245, 0.25);
  display: grid; place-items: center;
  color: var(--brand-blue);
}
.feature h3 { font-size: 20px; letter-spacing: -0.02em; }
.feature p { font-size: 15px; color: var(--text-2); line-height: 1.6; }

/* =========================================================
   Feature Matrix
   ========================================================= */
.matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .matrix { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .matrix { grid-template-columns: 1fr; } }
.matrix-cell {
  padding: 28px 24px;
  background: var(--bg-1);
  display: flex; flex-direction: column; gap: 12px;
  transition: background 0.2s ease;
}
.matrix-cell:hover { background: var(--bg-2); }
.matrix-cell svg { width: 24px; height: 24px; color: var(--brand-blue); }
.matrix-cell h4 { font-size: 16px; font-weight: 600; color: var(--text-0); letter-spacing: -0.01em; }
.matrix-cell p { font-size: 13.5px; color: var(--text-2); line-height: 1.55; }

/* =========================================================
   CTA Section
   ========================================================= */
.cta-section {
  position: relative;
  text-align: center;
  padding: 80px 56px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse 50% 80% at 50% 0%, rgba(77, 140, 245, 0.15), transparent 70%),
    linear-gradient(180deg, #0E1320 0%, #0A0E18 100%);
  border: 1px solid rgba(77, 140, 245, 0.20);
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 75%);
}
.cta-section > * { position: relative; }
.cta-section h2 { font-size: clamp(28px, 3.6vw, 40px); }
.cta-section p { color: var(--text-2); font-size: 17px; max-width: 540px; margin: 12px auto 28px; }
.cta-buttons { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  background: #000;
  border: 1px solid var(--border-strong);
  color: #fff;
  transition: all 0.2s ease;
}
.app-store-btn:hover { background: #111; border-color: rgba(255, 255, 255, 0.3); }
.app-store-btn svg { width: 26px; height: 26px; }
.app-store-btn .small { font-size: 11px; opacity: 0.8; line-height: 1; }
.app-store-btn .big { font-size: 16px; font-weight: 600; line-height: 1.2; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  margin-top: 80px;
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h5 { font-size: 13px; font-weight: 600; color: var(--text-0); margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: var(--text-2); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--text-0); }
.footer-about { max-width: 320px; }
.footer-about p { font-size: 14px; color: var(--text-2); margin-top: 16px; line-height: 1.6; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom .legal { display: flex; gap: 24px; }
.footer-bottom .legal a:hover { color: var(--text-1); }

/* =========================================================
   Legal pages (Privacy / Terms)
   ========================================================= */
.legal-hero {
  padding: 80px 0 40px;
  text-align: center;
  position: relative;
}
.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 0%, rgba(77, 140, 245, 0.10), transparent 70%);
  pointer-events: none;
}
.legal-hero > * { position: relative; }
.legal-hero h1 {
  font-size: clamp(36px, 4.4vw, 52px);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.legal-hero .meta {
  display: inline-flex; gap: 16px; align-items: center;
  font-size: 14px; color: var(--text-2);
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}
.legal-hero .meta .sep { width: 1px; height: 14px; background: var(--border-strong); }

.legal-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 0 80px;
}
.legal-body section {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}
.legal-body section:first-of-type { border-top: 0; padding-top: 0; }
.legal-body h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-0);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  scroll-margin-top: 100px;
}
.legal-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-0);
  margin: 20px 0 8px;
}
.legal-body p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-1);
  margin-bottom: 14px;
}
.legal-body ul {
  margin: 12px 0 18px 0;
  padding-left: 24px;
  list-style: disc;
}
.legal-body ul li {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-1);
  margin-bottom: 8px;
}
.legal-toc {
  position: sticky;
  top: 92px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 13.5px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.legal-toc h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-2);
  margin-bottom: 14px;
  font-weight: 600;
}
.legal-toc a {
  display: block;
  padding: 6px 10px;
  margin: 0 -10px;
  border-radius: 6px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.4;
  transition: all 0.15s ease;
}
.legal-toc a:hover {
  background: rgba(77, 140, 245, 0.08);
  color: var(--text-0);
}
.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  padding: 0 var(--gutter);
}
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; max-height: none; }
}

/* =========================================================
   Animation
   ========================================================= */
@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -52%) scale(1.01); }
}
.hero-orbit { animation: float 9s ease-in-out infinite; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up 0.7s ease-out both; }
.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.2s; }
.fade-up-d3 { animation-delay: 0.3s; }

/* =========================================================
   Utility
   ========================================================= */
.text-grad {
  background: linear-gradient(120deg, #fff 0%, #fff 40%, var(--brand-blue) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.center { text-align: center; }
.mono { font-family: var(--font-mono); }
