/* GenTide Biopharmaceutical - Modern Biotech Style */

:root {
  --primary: #0B3D91;        /* deep scientific blue */
  --primary-dark: #072961;
  --accent: #00B2A9;         /* teal accent */
  --accent-light: #4FD1C5;
  --text: #1a2332;
  --text-light: #5a6578;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --bg-dark: #0a1628;
  --border: #e4e9f0;
  --shadow: 0 4px 20px rgba(10, 40, 100, 0.08);
  --shadow-hover: 0 8px 30px rgba(10, 40, 100, 0.12);
  --radius: 8px;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}
.logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a.active,
.nav-links a:hover {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}
.lang-toggle button {
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: 18px;
  cursor: pointer;
  color: var(--text-light);
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s;
}
.lang-toggle button.active {
  background: var(--primary);
  color: white;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #f0f6ff 0%, #e8f5f4 100%);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,178,169,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero-tag {
  display: inline-block;
  background: rgba(11, 61, 145, 0.08);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
  max-width: 800px;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 680px;
  margin-bottom: 36px;
}
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  margin-left: 12px;
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* Sections */
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-header .eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* Stat cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.stat-card {
  background: white;
  padding: 32px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--accent);
}
.stat-card .num {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-card .label {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: white;
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(11,61,145,0.1), rgba(0,178,169,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Pipeline table */
.pipeline-list {
  display: grid;
  gap: 20px;
}
.pipeline-item {
  background: white;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.pipeline-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.pipeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.pipeline-subtitle {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 4px;
}
.market-badge {
  background: rgba(11, 61, 145, 0.08);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.stage-badge {
  background: rgba(0,178,169,0.12);
  color: #008577;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.stage-bar {
  display: flex;
  gap: 4px;
  margin: 20px 0 16px;
}
.stage-step {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
}
.stage-step.done { background: linear-gradient(90deg, var(--primary), var(--accent)); }
.stage-step.current { background: var(--accent); }
.pipeline-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 16px;
}
.pipeline-desc {
  color: var(--text-light);
  font-size: 0.98rem;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.team-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 1px solid var(--border);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.team-photo {
  height: 180px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  font-weight: 800;
}
.team-body {
  padding: 24px;
}
.team-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.team-role {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.team-bio {
  color: var(--text-light);
  font-size: 0.92rem;
}
.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.team-tag {
  background: var(--bg-alt);
  color: var(--text-light);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
}

/* DTBL diagram */
.dtbl-loop {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.dtbl-step {
  background: white;
  padding: 28px 20px;
  border-radius: var(--radius);
  text-align: center;
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow);
  position: relative;
}
.dtbl-letter {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.dtbl-name {
  font-weight: 700;
  margin: 6px 0 10px;
  font-size: 1.05rem;
}
.dtbl-desc {
  color: var(--text-light);
  font-size: 0.88rem;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: #a8b2c1;
  padding: 56px 0 28px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 14px;
  font-weight: 700;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; font-size: 0.9rem; }
.footer a { color: #a8b2c1; }
.footer a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #6c7588;
}
.footer-brand p {
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 360px;
}

/* Hamburger button — hidden on desktop */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 12px;
  flex-shrink: 0;
}
.nav-mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}
/* Animate to X when open */
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-mobile-toggle { display: flex; }
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(10, 40, 100, 0.08);
    gap: 4px;
    z-index: 99;
  }
  .nav-links.mobile-open a {
    padding: 10px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    display: block;
  }
  .nav-links.mobile-open li:last-child a {
    border-bottom: none;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 60px 0 70px; }
  .btn-outline { margin-left: 0; margin-top: 12px; }
}

/* Careers Page */
.careers-group {
  margin-bottom: 52px;
}
.careers-group-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}
.job-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.job-card:hover {
  box-shadow: var(--shadow-hover);
}
.job-head {
  padding: 24px 28px 0;
}
.job-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.job-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.job-tag {
  background: var(--bg-alt);
  color: var(--text-light);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
}
.job-tag.job-tag-hot {
  background: rgba(0, 178, 169, 0.12);
  color: #008577;
}
.job-body {
  padding: 0 28px 24px;
}
.job-body > p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.job-requirements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.job-req-col h5 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.job-req-col ul {
  list-style: none;
  padding: 0;
}
.job-req-col li {
  font-size: 0.88rem;
  color: var(--text-light);
  padding: 3px 0 3px 14px;
  position: relative;
}
.job-req-col li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.careers-cta {
  margin-top: 60px;
  text-align: center;
  background: linear-gradient(135deg, rgba(11,61,145,0.05), rgba(0,178,169,0.08));
  border-radius: 12px;
  padding: 48px 32px;
  border: 1px solid var(--border);
}
.careers-cta h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.careers-cta p {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .job-requirements { grid-template-columns: 1fr; }
}

/* Open Positions */
.openings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.opening-card {
  background: var(--bg-alt);
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
}
.opening-card.opening-priority {
  background: white;
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.opening-label {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 10px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.opening-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.opening-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Competitive Moat Cards */
.moat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.moat-card {
  background: white;
  padding: 36px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.moat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.moat-number {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.7;
}
.moat-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.moat-card p {
  color: var(--text-light);
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.moat-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.moat-stats span {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.moat-stats small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Milestone Timeline */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 36px;
  padding-left: 28px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -44px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-item.highlight::before {
  background: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
  width: 16px;
  height: 16px;
  left: -46px;
  top: 4px;
}
.timeline-year {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  line-height: 1.3;
}
.timeline-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.timeline-content p {
  color: var(--text-light);
  font-size: 0.93rem;
  line-height: 1.5;
}
.timeline-item.highlight .timeline-content h4 {
  color: var(--primary);
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease-out; }

/* Hide lang-specific content based on data-lang attribute on html */
html[data-lang="en"] [data-i18n-zh],
html[data-lang="zh"] [data-i18n-en] {
  display: none !important;
}
