/* Jamsil Labs — company site
   Design system: neutral slate surface + indigo accent, theme-aware.
   No external dependencies (no CDN fonts/scripts) — fast, robust, self-contained. */

:root {
  --bg:        #ffffff;
  --bg-soft:   #f6f7f9;
  --surface:   #ffffff;
  --border:    #e5e8ec;
  --text:      #16191f;
  --text-soft: #545b66;
  --text-mute: #7a828e;
  --accent:    #4f46e5;
  --accent-ink:#ffffff;
  --accent-soft:#eef0fe;
  --ring:      rgba(79, 70, 229, 0.25);
  --shadow:    0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  --radius:    14px;
  --maxw:      1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0d0f13;
    --bg-soft:   #12151b;
    --surface:   #14181f;
    --border:    #262b34;
    --text:      #eef1f5;
    --text-soft: #b6bdc8;
    --text-mute: #8a919d;
    --accent:    #8b83ff;
    --accent-ink:#0d0f13;
    --accent-soft:#1b1e33;
    --ring:      rgba(139, 131, 255, 0.30);
    --shadow:    0 1px 2px rgba(0,0,0,0.4), 0 10px 30px rgba(0,0,0,0.45);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
               "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; color: var(--text); font-size: 1.05rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px;
  display: inline-grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: 0.82rem; letter-spacing: 0.02em;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-soft); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 620px) { .nav-links a.hide-sm { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 0.92rem; border: 1px solid transparent;
  transition: transform .06s ease, filter .15s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 64px; }
.hero .eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.25rem); line-height: 1.08; letter-spacing: -0.02em;
  margin: 0 0 20px; font-weight: 720; max-width: 16ch;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--text-soft);
  max-width: 62ch; margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-head { max-width: 60ch; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 680; }
.section-head p { color: var(--text-soft); margin: 0; font-size: 1.05rem; }
.band { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow);
}
.card .ico {
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 16px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}
.card .ico svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 8px; font-size: 1.12rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-soft); font-size: 0.98rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } }
.about-grid p { color: var(--text-soft); }
.facts { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.facts li:last-child { border-bottom: 0; }
.facts .k { color: var(--text-mute); }
.facts .v { color: var(--text); font-weight: 550; text-align: right; }

/* ---------- Contact ---------- */
.contact-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow); text-align: center;
}
.contact-box h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; }
.contact-box p { color: var(--text-soft); margin: 0 auto 24px; max-width: 48ch; }
.email-link { font-size: 1.15rem; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 40px 0; margin-top: 8px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.footer-inner .legal { color: var(--text-mute); font-size: 0.88rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--text-soft); font-size: 0.9rem; }

/* ---------- Legal pages ---------- */
.legal-page { padding: 56px 0 72px; }
.legal-page h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.02em; margin: 0 0 6px; }
.legal-page .updated { color: var(--text-mute); font-size: 0.9rem; margin: 0 0 36px; }
.legal-page h2 { font-size: 1.2rem; margin: 34px 0 10px; letter-spacing: -0.01em; }
.legal-page p, .legal-page li { color: var(--text-soft); }
.legal-page .prose { max-width: 72ch; }
.legal-page ul { padding-left: 20px; }
.back-link { display: inline-block; margin-bottom: 28px; font-size: 0.92rem; }

.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
