/* ============================================================
   JASIT TECHNOLOGIES — SHARED DESIGN SYSTEM
   Tokens: ink (dark bookend), paper (light body), gold (learn),
   teal (build/product). Display: Space Grotesk. Body: Inter.
   Mono: JetBrains Mono (code/language motif).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --ink: #10131f;
  --ink-soft: #1a1e30;
  --paper: #faf8f3;
  --paper-raised: #ffffff;
  --gold: #e2a63b;
  --gold-dark: #b9822a;
  --teal: #114fa6;
  --teal-dark: #0d3b7d;
  --slate: #565b6b;
  --slate-light: #8a8fa3;
  --text: #191c2a;
  --mist: #e7e3d8;
  --mist-dark: #d8d2c2;
  --radius: 14px;
  --radius-sm: 9px;
  --max: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

a { color: inherit; }

.mono {
  font-family: 'JetBrains Mono', monospace;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.75rem; }

:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Eyebrow / label / language badges ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--teal-dark);
}
.eyebrow::before { content: '$'; color: var(--gold-dark); font-weight: 600; }

.lang-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.lang-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--mist-dark);
  color: var(--slate);
  background: var(--paper-raised);
}
.lang-chip.on-dark {
  border-color: rgba(255,255,255,0.16);
  color: #cfd3e6;
  background: rgba(255,255,255,0.04);
}

/* ---------- Nav ---------- */

nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mist);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.75rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.nav-logo .dot { color: var(--gold-dark); }
.nav-logo .logo-img { height: 40px; width: auto; display: block; }
.footer-brand .logo-img { height: 34px; width: auto; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--slate);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--teal-dark); }
.nav-cta {
  background: var(--ink) !important;
  color: #fff !important;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem !important;
}
.nav-cta:hover { background: var(--teal-dark) !important; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.14s, background 0.18s, border-color 0.18s;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #241804; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-soft); }
.btn-outline { border-color: var(--mist-dark); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--slate); }
.btn-outline.on-dark { border-color: rgba(255,255,255,0.25); color: #fff; }
.btn-outline.on-dark:hover { border-color: rgba(255,255,255,0.55); }

/* ---------- Section rhythm ---------- */

section { padding: 5.5rem 0; }
.section-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 0.7rem; font-family: 'JetBrains Mono', monospace; }
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; margin-bottom: 0.8rem; }
.section-sub { font-size: 1.02rem; color: var(--slate); max-width: 560px; line-height: 1.7; margin-bottom: 3rem; }

.card {
  background: var(--paper-raised);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 1.9rem;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: 0 10px 28px rgba(16,19,31,0.07); transform: translateY(-2px); border-color: var(--mist-dark); }

/* ---------- Dark bookend blocks (hero/footer) ---------- */

.ink-block {
  background: var(--ink);
  color: #e9ebf5;
}
.ink-block h1, .ink-block h2, .ink-block h3 { color: #fff; }
.ink-block .section-sub, .ink-block p { color: #b6bad0; }

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--ink);
  color: #9ba0b8;
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.footer-brand .nav-logo { color: #fff; }
.footer-brand p { margin-top: 0.9rem; font-size: 0.88rem; color: #8a8fa3; max-width: 260px; line-height: 1.7; }
.footer-col h4 { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: #cfd3e6; margin-bottom: 1rem; font-weight: 500; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { font-size: 0.88rem; color: #9ba0b8; text-decoration: none; transition: color 0.18s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 1.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.82rem; }

/* ---------- Toast notification ---------- */

#toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  max-width: min(360px, calc(100vw - 2.5rem));
  background: var(--ink);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(16,19,31,0.25);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 480px) {
  #toast { left: 1.25rem; right: 1.25rem; bottom: 1.25rem; max-width: none; text-align: center; }
}

/* ---------- Utility grids ---------- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--mist);
    padding: 1.5rem 1.75rem;
    gap: 1.2rem;
    z-index: 99;
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  section { padding: 3.5rem 0; }
}