/*
  assets/css/custom.css
  Custom components, animations & design tokens
  (Works alongside Tailwind CDN — loaded on every page)
*/

/* ── Design Tokens ─────────────────────────────── */
:root {
  --teal:       #00c896;
  --teal-dark:  #009e78;
  --teal-light: #e6faf5;
  --navy:       #0a1628;
  --navy-mid:   #1a2e4a;
  --ink:        #0e0e10;
  --ink-10:     #e4e4ea;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* ── Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Bricolage Grotesque', sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Logo Mark Animation ───────────────────────── */
.logo-mark { position: relative; }
.logo-mark::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  animation: spin 4s linear infinite;
}
.logo-mark::after {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Hero Badge Pulse ──────────────────────────── */
.pulse-dot { animation: pulseDot 2s ease infinite; }
@keyframes pulseDot {
  0%,100% { opacity:1; transform:scale(1); }
  50%     { opacity:.5; transform:scale(.8); }
}

/* ── Hero Underline Animation ──────────────────── */
.hero-underline {
  position: relative;
  display: inline-block;
}
.hero-underline::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: lineIn .6s .7s ease both;
}
@keyframes lineIn { to { transform: scaleX(1); } }

/* ── Float Animation ───────────────────────────── */
.float-node { animation: float 6s ease-in-out infinite; }
.float-node:nth-child(2) { animation-delay: 1s; }
.float-node:nth-child(3) { animation-delay: 2s; }
.float-node:nth-child(4) { animation-delay: 0.5s; }
@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-12px) scale(1.1); }
}

/* ── Fade Up Animations ────────────────────────── */
.fade-up   { animation: fadeUp .6s ease both; }
.fade-up-1 { animation: fadeUp .6s .1s ease both; }
.fade-up-2 { animation: fadeUp .6s .2s ease both; }
.fade-up-3 { animation: fadeUp .6s .3s ease both; }
.fade-in   { animation: fadeIn .8s .2s ease both; }
@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeIn {
  from { opacity:0; }
  to   { opacity:1; }
}

/* ── Navigation ────────────────────────────────── */
.site-nav {
  position: sticky; top:0; z-index:50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #e4e4ea;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  box-shadow: 0 1px 0 #e4e4ea, 0 2px 12px rgba(14,14,16,.06);
}
.nav-link {
  font-size: 14px; font-weight: 500;
  color: #6e6e7a;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: #0e0e10;
  background: #f8f7f4;
}
.nav-cta {
  background: #0e0e10; color: #fff;
  font-size: 14px; font-weight: 600;
  padding: 10px 22px; border-radius: 10px;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(14,14,16,.2);
}
.nav-cta:hover {
  background: #1c1c20;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(14,14,16,.25);
}

/* ── Buttons ───────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #0e0e10; color: #fff;
  font-size: 15px; font-weight: 600;
  padding: 14px 28px; border-radius: 12px;
  border: none; cursor: pointer;
  transition: var(--transition);
  letter-spacing: -0.01em;
  box-shadow: 0 2px 12px rgba(14,14,16,.2);
}
.btn-primary:hover {
  background: #1c1c20;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14,14,16,.25);
}
.btn-primary .arrow { transition: transform .2s; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #0e0e10;
  font-size: 15px; font-weight: 600;
  padding: 13px 26px; border-radius: 12px;
  border: 1.5px solid #e4e4ea; cursor: pointer;
  transition: var(--transition);
  letter-spacing: -0.01em;
}
.btn-secondary:hover {
  border-color: #6e6e7a;
  background: #f8f7f4;
  transform: translateY(-1px);
}

.btn-teal {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: #0e0e10;
  font-size: 15px; font-weight: 700;
  padding: 14px 28px; border-radius: 12px;
  border: none; cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0,200,150,.3);
}
.btn-teal:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,200,150,.4);
}

/* ── Eyebrow ───────────────────────────────────── */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-dark);
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

/* ── Section Title ─────────────────────────────── */
.section-title {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(32px,4vw,52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0e0e10;
}
.section-subtitle {
  font-size: 18px; color: #6e6e7a;
  line-height: 1.6; max-width: 560px; margin-top: 16px;
}

/* ── Tags ──────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  color: #3a3a42; background: #f8f7f4;
  border: 1px solid #e4e4ea;
  padding: 4px 12px; border-radius: 100px;
  letter-spacing: .02em;
}
.tag-teal {
  display: inline-flex; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  color: var(--teal-dark); background: var(--teal-light);
  border: 1px solid rgba(0,200,150,.2);
  padding: 4px 12px; border-radius: 100px;
  letter-spacing: .02em;
}

/* ── Cards ─────────────────────────────────────── */
.card {
  background: #fff; border: 1px solid #e4e4ea;
  border-radius: 16px; padding: 32px;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(14,14,16,.06);
}
.card:hover {
  border-color: #b0b0bc;
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(14,14,16,.10);
}

/* ── Service visual box ────────────────────────── */
.svc-visual {
  border-radius: 24px; padding: 48px;
  min-height: 440px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--navy);
  box-shadow: 0 24px 64px rgba(14,14,16,.14);
  position: relative; overflow: hidden;
}
.svc-visual::before {
  content: '';
  position: absolute; bottom: -80px; right: -80px;
  width: 280px; height: 280px;
  border: 2px solid rgba(255,255,255,.08); border-radius: 50%;
}
.svc-visual.teal-box { background: linear-gradient(135deg, var(--teal-dark) 0%, #007a5e 100%); }
.svc-chip {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  font-size: 12px; font-family: 'JetBrains Mono', monospace;
  padding: 4px 12px; border-radius: 100px;
  display: inline-block; margin: 3px;
}

/* ── Service mini card ─────────────────────────── */
.svc-mini-card {
  background: #fff; border: 1px solid #e4e4ea;
  border-radius: 14px; padding: 20px 24px;
  display: flex; align-items: flex-start; gap: 16px;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(14,14,16,.06);
}
.svc-mini-card:hover {
  border-color: var(--teal);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0,200,150,.1);
}

/* ── Partnership card ──────────────────────────── */
.p-card {
  border-radius: 24px; padding: 40px;
  border: 1px solid #e4e4ea; background: #fff;
  transition: var(--transition); position: relative; overflow: hidden;
  box-shadow: 0 2px 12px rgba(14,14,16,.06);
}
.p-card::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  background: var(--teal-light); opacity: 0;
  transition: var(--transition);
}
.p-card:hover {
  border-color: var(--teal);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,200,150,.12);
}
.p-card:hover::before { opacity: 1; }

/* ── Case card ─────────────────────────────────── */
.case-card {
  background: #fff; border: 1px solid #e4e4ea;
  border-radius: 20px; overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(14,14,16,.06);
}
.case-card:hover {
  border-color: #b0b0bc;
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(14,14,16,.10);
}

/* ── Testimonial card ──────────────────────────── */
.testi-card {
  border-radius: 20px; padding: 36px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  transition: var(--transition);
}
.testi-card:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(0,200,150,.3);
}

/* ── Contact option card ───────────────────────── */
.contact-option-card {
  background: #fff; border: 1.5px solid #e4e4ea;
  border-radius: 20px; padding: 32px 28px;
  text-align: center; transition: var(--transition); cursor: pointer;
  box-shadow: 0 2px 12px rgba(14,14,16,.06);
}
.contact-option-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,200,150,.1);
}

/* ── Form inputs ───────────────────────────────── */
.form-input {
  width: 100%; background: #fff;
  border: 1.5px solid #e4e4ea; border-radius: 10px;
  padding: 12px 16px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px; color: #0e0e10;
  outline: none; transition: border-color .2s; margin-bottom: 16px;
}
.form-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,200,150,.1);
}
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: #3a3a42; margin-bottom: 8px; letter-spacing: .01em;
}

/* ── Timeline ──────────────────────────────────── */
.timeline { position: relative; padding-left: 48px; }
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal) 0%, #e4e4ea 100%);
}
.timeline-item { position: relative; margin-bottom: 56px; }
.timeline-item::before {
  content: '';
  position: absolute; left: -55px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--teal);
  box-shadow: 0 0 0 4px rgba(0,200,150,.15);
}

/* ── Stats grid ────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: #e4e4ea;
  border: 1px solid #e4e4ea; border-radius: 16px; overflow: hidden;
}
.stat-cell { background: #fff; padding: 40px 36px; transition: var(--transition); }
.stat-cell:hover { background: #f8f7f4; }

/* ── CTA Banner ────────────────────────────────── */
.cta-banner {
  border-radius: 28px; padding: 80px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 48px;
  background: #0e0e10; position: relative; overflow: hidden;
  box-shadow: 0 24px 64px rgba(14,14,16,.14);
}
.cta-banner::before {
  content: '';
  position: absolute; left: -100px; top: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,200,150,.2) 0%, transparent 65%);
  pointer-events: none;
}

/* ── FAQ ───────────────────────────────────────── */
.faq-item {
  background: #fff; border: 1px solid #e4e4ea;
  border-radius: 14px; overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(14,14,16,.06);
}
.faq-item:hover { border-color: #b0b0bc; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 200px; }
.faq-icon { transition: transform .25s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ── Hero visual ───────────────────────────────── */
.hero-visual {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: 24px; padding: 40px;
  min-height: 480px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 24px 64px rgba(14,14,16,.14);
  position: relative; overflow: hidden;
}
.hero-visual::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(0,200,150,.25) 0%, transparent 70%);
}

/* ── About hero ────────────────────────────────── */
.about-hero {
  background: var(--navy); padding: 120px 48px 96px;
  position: relative; overflow: hidden;
}
.about-hero::before {
  content: '';
  position: absolute; right: -100px; top: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,200,150,.15) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Lab hero ──────────────────────────────────── */
.lab-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0f2040 100%);
  padding: 120px 48px 96px; position: relative; overflow: hidden;
}
.lab-hero::before {
  content: '';
  position: absolute; left: -150px; bottom: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,200,150,.18) 0%, transparent 65%);
}

/* ── Featured case ─────────────────────────────── */
.fc-visual {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 64px 48px; position: relative; overflow: hidden;
  min-height: 480px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.fc-visual::before {
  content: '';
  position: absolute; bottom: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,200,150,.2) 0%, transparent 65%);
}

/* ── Filter bar ────────────────────────────────── */
.filter-btn {
  font-size: 14px; font-weight: 500;
  color: #6e6e7a; background: #f8f7f4;
  border: 1.5px solid #e4e4ea; border-radius: 100px;
  padding: 8px 20px; cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  color: #fff; background: #0e0e10; border-color: #0e0e10;
}

/* ── Footer ────────────────────────────────────── */
footer { background: #0e0e10; color: #fff; }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 1024px) {
  .site-nav { padding: 0 24px; }
  .home-hero-grid { grid-template-columns: 1fr !important; gap: 48px; }
  .service-grid   { grid-template-columns: 1fr !important; gap: 48px; }
  .why-grid        { grid-template-columns: 1fr !important; gap: 48px; }
  .apply-grid      { grid-template-columns: 1fr !important; gap: 48px; }
  .contact-grid    { grid-template-columns: 1fr !important; gap: 48px; }
  .mv-grid         { grid-template-columns: 1fr !important; }
  .featured-grid   { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-3-col { grid-template-columns: 1fr !important; }
  .grid-4-col { grid-template-columns: 1fr 1fr !important; }
  .p-grid     { grid-template-columns: 1fr !important; }
  .cta-banner { flex-direction: column; padding: 48px 24px; }
  .section-pad { padding: 64px 24px; }
  .about-hero, .lab-hero { padding: 80px 24px 64px; }
}
@media (max-width: 480px) {
  .contact-opt-grid { grid-template-columns: 1fr !important; }
  .hero-actions { flex-direction: column; }
}
