/* Tobala Labs — shared stylesheet for /services/* landing pages.
   Design tokens mirror index.html. Kept as one cacheable file rather than
   inlined per page, because eight pages share it. */

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

:root {
  --bg-primary: #07080A;
  --bg-secondary: #0D0F12;
  --bg-tertiary: #14171C;
  --bg-card: #1A1D24;

  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;

  --text-primary: #F4F4F5;
  --text-secondary: #A1A1AA;
  --text-tertiary: #71717A;
  --text-muted: #52525B;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1000;
}

::selection { background: var(--emerald-500); color: var(--bg-primary); }

.container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  background: rgba(7, 8, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--text-primary); }
.logo-img { height: 44px; width: auto; object-fit: contain; }
.logo-text { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.02em; }

.nav-actions { display: flex; align-items: center; gap: 1.25rem; }

.nav-lang {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}
.nav-lang:hover { color: var(--emerald-400); }

.back-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}
.back-link:hover { color: var(--emerald-400); }
.back-link svg { width: 18px; height: 18px; }

/* ---------- Breadcrumb ---------- */
.crumbs {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.crumbs a { color: var(--text-tertiary); text-decoration: none; transition: color 0.3s ease; }
.crumbs a:hover { color: var(--emerald-400); }
.crumbs span { margin: 0 0.5rem; opacity: 0.5; }

/* ---------- Page shell ---------- */
.service-content { padding: 10rem 0 5rem; }

.service-header { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-subtle); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald-400);
  margin-bottom: 1rem;
  display: block;
}

.service-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.service-title .highlight {
  color: var(--emerald-400);
  font-style: italic;
}

.service-lede { color: var(--text-secondary); font-size: 1.125rem; line-height: 1.75; max-width: 62ch; }

/* ---------- Body copy ---------- */
.service-body h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--emerald-400);
  letter-spacing: -0.01em;
}

.service-body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.service-body p { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.8; }
.service-body ul { color: var(--text-secondary); margin-bottom: 1rem; padding-left: 1.25rem; }
.service-body li { margin-bottom: 0.625rem; line-height: 1.75; }
.service-body li strong { color: var(--text-primary); font-weight: 600; }

.service-body a { color: var(--emerald-400); text-decoration: none; transition: color 0.3s ease; }
.service-body a:hover { color: var(--emerald-500); text-decoration: underline; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0.5rem;
}

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem 1.375rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.card:hover { border-color: var(--border-medium); transform: translateY(-2px); }
.card h3 { margin-top: 0; margin-bottom: 0.375rem; }
.card p { margin-bottom: 0; font-size: 0.9375rem; }

/* ---------- Tech chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.375rem 0.75rem;
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 1rem; }
.faq-entry {
  border-top: 1px solid var(--border-subtle);
  padding: 1.25rem 0;
}
.faq-entry:last-child { border-bottom: 1px solid var(--border-subtle); }
.faq-entry h3 { margin-top: 0; margin-bottom: 0.5rem; }
.faq-entry p { margin-bottom: 0; }

/* ---------- CTA ---------- */
.cta-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
}
.cta-box h2 { margin-top: 0; }
.cta-box p { max-width: 52ch; margin-left: auto; margin-right: auto; }

.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.btn-primary { background: var(--emerald-500); color: var(--bg-primary); }
.btn-primary:hover { background: var(--emerald-400); transform: translateY(-2px); text-decoration: none; }
.btn-ghost { border: 1px solid var(--border-medium); color: var(--text-primary); }
.btn-ghost:hover { border-color: var(--emerald-400); color: var(--emerald-400); transform: translateY(-2px); text-decoration: none; }

/* ---------- Sibling services ---------- */
.siblings { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--border-subtle); }
.siblings h2 { margin-top: 0; font-size: 1.375rem; }
.sibling-links { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1rem; }
.sibling-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.sibling-links a:hover { color: var(--emerald-400); border-color: var(--emerald-400); text-decoration: none; }

/* ---------- Footer ---------- */
.footer { padding: 3rem 0; border-top: 1px solid var(--border-subtle); text-align: center; }
.footer-text { color: var(--text-muted); font-size: 0.8125rem; }
.footer-text a { color: var(--text-tertiary); text-decoration: none; transition: color 0.3s ease; }
.footer-text a:hover { color: var(--emerald-400); }

@media (max-width: 768px) {
  .service-content { padding: 8rem 0 3.5rem; }
  .logo-text { font-size: 1.25rem; }
  .logo-img { height: 36px; }
  .back-link span { display: none; }
}
