/* ============================================
   TANSIJOBS — Brand Design System
   Brand color: Cyan (#29BCD4)
   ============================================ */

/* --- DESIGN TOKENS --- */
:root {
  --bg: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-subtle: #F4F8FA;
  --bg-hover: #E8F2F5;
  --text: #1A2332;
  --text-secondary: #4E5D6E;
  --text-tertiary: #8696A7;
  --border: #DCE5EA;
  --border-subtle: #E8EFF3;
  --accent: #29BCD4;
  --accent-hover: #1FA8BF;
  --accent-dark: #1A95AA;
  --accent-light: rgba(41, 188, 212, 0.08);
  --accent-mid: rgba(41, 188, 212, 0.15);
  --accent-strong: rgba(41, 188, 212, 0.22);
  --shadow-sm: 0 1px 3px rgba(26,35,50,0.05), 0 1px 2px rgba(26,35,50,0.03);
  --shadow-md: 0 4px 16px rgba(26,35,50,0.07), 0 2px 4px rgba(26,35,50,0.04);
  --shadow-lg: 0 12px 40px rgba(26,35,50,0.09), 0 4px 12px rgba(26,35,50,0.04);
  --shadow-xl: 0 20px 60px rgba(26,35,50,0.11), 0 8px 20px rgba(26,35,50,0.05);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --nav-bg: rgba(255, 255, 255, 0.85);
  --biz-bg: var(--accent);
  --biz-text: #ffffff;
}

[data-theme="dark"] {
  --bg: #0B1117;
  --bg-elevated: #131A22;
  --bg-subtle: #1A232D;
  --bg-hover: #212C38;
  --text: #E8ECF0;
  --text-secondary: #9EAAB8;
  --text-tertiary: #6B7C8E;
  --border: #253040;
  --border-subtle: #1C2735;
  --accent: #3DD0E8;
  --accent-hover: #55DAF0;
  --accent-dark: #29BCD4;
  --accent-light: rgba(61, 208, 232, 0.1);
  --accent-mid: rgba(61, 208, 232, 0.18);
  --accent-strong: rgba(61, 208, 232, 0.25);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.25);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.35);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.4);
  --nav-bg: rgba(11, 17, 23, 0.85);
  --biz-bg: #0F2E35;
  --biz-text: #E8ECF0;
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }

.section { padding: 96px 0; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header-left { text-align: left; }
.section-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.section-title-light { color: var(--biz-text); }
.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-desc-light { color: rgba(255,255,255,0.75); }
[data-theme="dark"] .section-desc-light { color: rgba(232,236,240,0.65); }

/* --- SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.btn-sm { padding: 10px 24px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(41, 188, 212, 0.3);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(41, 188, 212, 0.4);
  transform: translateY(-2px);
}
.btn-outline {
  border: 2px solid var(--border);
  color: var(--text);
  background: var(--bg-elevated);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-1px);
}
.btn-white {
  background: #fff;
  color: var(--accent-dark);
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.18); }
[data-theme="dark"] .btn-white { background: var(--bg-elevated); color: var(--accent); }

/* ============ TOP BAR ============ */
.top-bar {
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 0;
  text-align: center;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.top-bar-sep { opacity: 0.4; }

/* ============ NAVBAR ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.4s ease, box-shadow 0.3s ease;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.footer-logo-img {
  height: 30px;
}
/* In dark mode, brighten the logo slightly so it pops on dark bg */
[data-theme="dark"] .logo-img {
  filter: brightness(1.15);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all 0.2s;
}
.nav-link:hover { color: var(--text); background: var(--bg-subtle); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s;
  background: var(--bg-subtle);
}
.theme-toggle:hover { color: var(--accent); background: var(--bg-hover); }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0 64px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 45%, var(--accent-light) 0%, transparent 70%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: orbFloat 22s ease-in-out infinite;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  top: -15%; right: -10%;
  background: var(--accent);
  opacity: 0.06;
}
.hero-orb-2 {
  width: 380px; height: 380px;
  bottom: -10%; left: -8%;
  background: var(--accent);
  opacity: 0.05;
  animation-delay: -11s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(25px, -18px) scale(1.04); }
  66% { transform: translate(-18px, 12px) scale(0.96); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-logo {
  margin-bottom: 32px;
  display: inline-block;
}
.hero-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 24px rgba(41, 188, 212, 0.2));
}
[data-theme="dark"] .hero-logo-img {
  filter: brightness(1.15) drop-shadow(0 4px 24px rgba(61, 208, 232, 0.25));
}
@media (min-width: 769px) {
  .hero-logo-img { height: 100px; }
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 32px;
  color: var(--text);
}
.hero-title-script {
  font-style: italic;
  color: var(--accent);
}
.hero-title-bold {
  display: block;
  margin-top: 4px;
}

.hero-cta-block { margin-bottom: 36px; }
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1px;
  line-height: 1.2;
}
.hero-tagline-sub {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.hero-actions { margin-bottom: 0; }

/* ============ EMPOWERING ============ */
.empowering-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.dual-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ FOR JOB SEEKERS ============ */
.seekers-section { padding-bottom: 80px; }

.features-list {
  max-width: 800px;
  margin: 0 auto;
}

.feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s;
}
.feature-row:first-child { border-top: 1px solid var(--border-subtle); }
.feature-row:hover {
  padding-left: 12px;
}

.feature-content { flex: 1; }
.feature-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.feature-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 480px;
}

.feature-visual { flex-shrink: 0; }
.feature-icon-lg {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.feature-row:hover .feature-icon-lg {
  background: var(--accent-mid);
  transform: scale(1.05);
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* ============ FOR BUSINESSES ============ */
.business-section {
  background: var(--biz-bg);
  color: var(--biz-text);
  position: relative;
  overflow: hidden;
}
.business-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
  opacity: 0.5;
}
.business-section > .container { position: relative; z-index: 1; }

.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 0;
}

.biz-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  backdrop-filter: blur(8px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="dark"] .biz-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.biz-card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
[data-theme="dark"] .biz-card:hover {
  background: rgba(255,255,255,0.08);
}

.biz-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 18px;
  transition: all 0.3s;
}
[data-theme="dark"] .biz-card-icon { background: rgba(255,255,255,0.08); color: var(--accent); }
.biz-card:hover .biz-card-icon { background: rgba(255,255,255,0.25); transform: scale(1.05); }

.biz-card-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}
[data-theme="dark"] .biz-card-title { color: var(--text); }
.biz-card-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}
[data-theme="dark"] .biz-card-desc { color: var(--text-secondary); }

/* ============ PATH TO GROWTH ============ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step-card {
  text-align: center;
  padding: 36px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.step-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 8px;
}
.step-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============ MISSION ============ */
.mission-section {
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.mission-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, var(--accent-light) 0%, transparent 70%);
}
.mission-content { position: relative; z-index: 1; }
.mission-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.mission-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ============ FOOTER ============ */
.footer {
  padding: 64px 0 28px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  margin-top: 14px;
  line-height: 1.65;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-tertiary);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 5px 0;
  transition: color 0.2s, padding-left 0.2s;
}
.footer-col a:hover { color: var(--accent); padding-left: 4px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-tertiary); }
.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
}
.footer-socials { display: flex; gap: 14px; }
.footer-socials a {
  color: var(--text-tertiary);
  transition: color 0.2s, transform 0.2s;
  display: flex;
}
.footer-socials a:hover { color: var(--accent); transform: translateY(-2px); }

/* ============ PARTICLES & FLOATING ============ */
.particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero:hover .particle-canvas { pointer-events: auto; }

.floating-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.floating-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.08;
  animation: floatDot ease-in-out infinite;
}
@keyframes floatDot {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.06; }
  25% { transform: translateY(-18px) translateX(8px); opacity: 0.12; }
  50% { transform: translateY(-8px) translateX(-6px); opacity: 0.08; }
  75% { transform: translateY(-22px) translateX(4px); opacity: 0.1; }
}

/* ============ LEGAL PAGES ============ */
.legal-section {
  padding-top: 48px;
  padding-bottom: 80px;
}
.legal-container {
  max-width: 780px;
  margin: 0 auto;
}
.legal-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.legal-meta {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.legal-meta:last-of-type {
  margin-bottom: 48px;
}
.legal-container h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 40px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.legal-container h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 10px;
}
.legal-container p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal-container ul {
  margin: 0 0 16px 24px;
  padding: 0;
}
.legal-container ul li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 4px;
}
.legal-container ul ul {
  margin-top: 4px;
  margin-bottom: 8px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
  }
  .mobile-menu-btn { display: flex; }

  .hero { min-height: auto; padding: 60px 0 48px; }
  .hero-title { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .hero-logo-img { height: 64px; }

  .feature-row { flex-direction: column; gap: 16px; align-items: flex-start; }
  .feature-row:hover { padding-left: 0; }

  .biz-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-right { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .dual-cta { flex-direction: column; align-items: center; }
  .dual-cta .btn { width: 100%; justify-content: center; }
  .top-bar-inner { flex-direction: column; gap: 2px; }
  .top-bar-sep { display: none; }
}
