/* ==========================================================================
   YACHAQ.DEV — Developer design system
   Mirrors yachaq.ai / somatech.dev. Single source of truth.
   Brand #FF4D00 · Ink #050505 · Inter / Geist / JetBrains Mono
   ========================================================================== */

@font-face { font-family: 'Geist'; src: url('https://cdn.jsdelivr.net/npm/geist-font@1.0.1/fonts/geist-sans/Geist-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('https://cdn.jsdelivr.net/npm/geist-font@1.0.1/fonts/geist-sans/Geist-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('https://cdn.jsdelivr.net/npm/geist-font@1.0.1/fonts/geist-sans/Geist-Black.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --brand: #FF4D00;
  --brand-dark: #D94A0F;
  --ink: #050505;
  --paper: #ffffff;
  --line: rgba(0,0,0,0.08);
  --muted: #6b7280;
}

html { font-size: 85%; overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.font-geist { font-family: 'Geist', sans-serif; }
.font-mono-code { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; }

/* Display heading (hero + section titles) */
.hero-text {
  font-family: 'Geist', sans-serif;
  font-size: clamp(2.65rem, 10.5vw, 8.8rem);
  line-height: 0.85;
  font-weight: 900;
  letter-spacing: -0.06em;
}
.hero-text-sm {
  font-family: 'Geist', sans-serif;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.05em;
}

::selection { background-color: var(--brand); color: #fff; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 10px; }

/* Vertical grid lines used on orange hero / CTA */
.grid-lines::before,
.grid-lines::after {
  content: ""; position: absolute; top: 0; height: 100%; width: 1px;
  background: rgba(255,255,255,0.10); display: none;
}
.grid-lines::before { left: 25%; }
.grid-lines::after { left: 75%; }
@media (min-width: 1024px) { .grid-lines::before, .grid-lines::after { display: block; } }
.grid-line-50 {
  position: absolute; top: 0; left: 50%; height: 100%; width: 1px;
  background: rgba(255,255,255,0.10); display: none;
}
@media (min-width: 1024px) { .grid-line-50 { display: block; } }

/* Indent block */
.indent-block { padding-left: clamp(1.5rem, 5vw, 4rem); border-left: 1px solid currentColor; }

/* Brand card */
.card-brand { background: #f5f5f5; border: 1px solid rgba(0,0,0,0.05); transition: all 0.3s ease; }
.card-brand:hover { background: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.card-brand:hover h3, .card-brand:hover h4, .card-brand:hover p, .card-brand:hover span,
.card-brand:hover li, .card-brand:hover a, .card-brand:hover code { color: #fff !important; border-color: rgba(255,255,255,0.35) !important; }
.card-brand:hover svg { color: #fff !important; }
.dark .card-brand { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.05); }
.dark .card-brand p, .dark .card-brand li { color: rgba(255,255,255,0.55); }
.dark .card-brand:hover { background: var(--brand); border-color: var(--brand); }

/* Dark section */
.section-dark { background: var(--ink); color: #fff; }
.section-dark .card-brand { background: #121212; border-color: rgba(255,255,255,0.06); }
.section-dark .card-brand p, .section-dark .card-brand li { color: rgba(255,255,255,0.55); }
.section-dark .card-brand:hover p, .section-dark .card-brand:hover li { color: #fff; }
.section-dark .label-muted, .section-dark .text-gray-500, .section-dark .text-gray-400 { color: rgba(255,255,255,0.5); }

/* Section label chip row */
.eyebrow { display: flex; align-items: center; gap: 1rem; margin-bottom: 2.5rem; }
.eyebrow::before { content: ""; height: 1px; width: 4rem; background: var(--brand); }
.eyebrow span { font-size: .78rem; font-weight: 900; letter-spacing: .5em; text-transform: uppercase; color: var(--brand); }

/* Pills */
.pill { display: inline-flex; align-items: center; padding: .5rem 1rem; border-radius: 999px;
  font-size: .7rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.pill-light { background: rgba(255,255,255,0.2); color: #fff; }
.pill-ink { background: rgba(0,0,0,0.05); color: var(--ink); }
.dark .pill-ink { background: rgba(255,255,255,0.08); color: #fff; }
.pill-brand { background: var(--brand); color: #fff; }
.pill-outline { border: 1px solid var(--line); color: var(--muted); }
.dark .pill-outline { border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.6); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .6rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: .12em; font-size: .72rem; border-radius: 999px; padding: .95rem 1.75rem;
  transition: all .25s ease; cursor: pointer; border: 0; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--ink); color: #fff; }
.dark .btn-brand:hover { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; border: 2px solid currentColor; color: inherit; }
.btn-ghost:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { background: var(--ink); color: #fff; }

/* Link underline style used in hero */
.link-underline { display: inline-flex; align-items: center; gap: 1rem; font-size: .8rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .35em; border-bottom: 2px solid currentColor; padding-bottom: .5rem;
  transition: opacity .2s ease; }
.link-underline:hover { opacity: .65; }

/* Code / terminal */
.code-block { position: relative; background: #0c0c0c; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem; overflow: hidden; }
.code-block .code-head { display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.code-block .code-title { font-size: .7rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.code-block pre { margin: 0; padding: 1.25rem; overflow-x: auto; font-family: 'JetBrains Mono', monospace;
  font-size: .82rem; line-height: 1.7; color: #e5e5e5; }
.code-block .tok-cmd { color: #FF7A45; }
.code-block .tok-str { color: #7dd3a0; }
.code-block .tok-arg { color: #9ecbff; }
.code-block .tok-com { color: #6b7280; }
.copy-btn { font-size: .62rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.15); border-radius: 999px;
  padding: .35rem .7rem; transition: all .2s ease; background: transparent; cursor: pointer; }
.copy-btn:hover { color: #fff; border-color: var(--brand); background: rgba(255,77,0,0.1); }
.copy-btn.done { color: #7dd3a0; border-color: #7dd3a0; }
/* Light code (inline) */
code.inline { font-family: 'JetBrains Mono', monospace; font-size: .85em; background: rgba(0,0,0,0.06);
  padding: .15em .45em; border-radius: .4rem; }
.dark code.inline { background: rgba(255,255,255,0.1); }

/* Tables */
.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table th, .spec-table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.dark .spec-table th, .dark .spec-table td { border-color: rgba(255,255,255,0.08); }
.spec-table th { font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); }
.spec-table td.k { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--brand); white-space: nowrap; }

/* Steps (how the assistant works) */
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; padding: 1.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.step:last-child { border-bottom: 0; }
.step-num { font-family: 'Geist', sans-serif; font-weight: 900; font-size: 2.5rem; line-height: 1; color: var(--brand); }
.step h3 { font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: .4rem; }
.step p { color: rgba(255,255,255,0.6); line-height: 1.6; }

/* FAQ */
.faq { max-width: 52rem; }
.faq-item { border: 1px solid var(--line); border-radius: 1rem; padding: 0 1.25rem; margin-bottom: .75rem; background: #fafafa; }
.dark .faq-item { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.15rem 0; font-weight: 800; font-size: 1.02rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--brand); font-weight: 900; }
.faq-item[open] summary::after { content: '\2013'; }
.faq-item p { padding: 0 0 1.15rem; color: var(--muted); line-height: 1.65; }
.dark .faq-item p { color: rgba(255,255,255,0.55); }
.faq-item a { color: var(--brand); text-decoration: underline; }

/* Nav */
#yd-nav { transition: all .3s ease; }
.nav-link { display: flex; align-items: center; height: 100%; padding: 0 1.15rem; font-size: .68rem;
  font-weight: 900; text-transform: uppercase; letter-spacing: .18em; color: #9ca3af; transition: color .2s ease; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--brand); }
.dark .nav-link:hover, .dark .nav-link[aria-current="page"] { color: var(--brand); }

/* Footer */
.footer-col-title { display: block; font-size: .72rem; font-weight: 900; letter-spacing: .5em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 1.5rem; opacity: .75; }
.footer-link { display: block; font-size: .8rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .02em; color: #6b7280; padding: .55rem 0; transition: color .2s ease; }
.footer-link:hover { color: var(--brand); }
.dark .footer-link { color: rgba(255,255,255,0.55); }

/* Mobile menu */
#yd-mobile { display: none; }
#yd-mobile.open { display: block; animation: ydFade .25s ease; }
@keyframes ydFade { from { opacity: 0; } to { opacity: 1; } }

/* lang dropdown */
.lang-option.active { background: var(--brand); color: #fff; }

@media (max-width: 768px) {
  .card-brand { padding: 1.75rem !important; }
  .eyebrow span { letter-spacing: .3em; }
}

/* ==========================================================================
   Header / Footer layout (injected by site.js)
   ========================================================================== */
.yd-container { width: min(100% - 2rem, 1440px); margin: 0 auto; }

#yd-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.dark #yd-nav { background: rgba(5,5,5,.92); border-bottom-color: rgba(255,255,255,.08); }
.yd-nav-inner { height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.yd-brand { display: inline-flex; align-items: baseline; font-family: 'Geist', sans-serif;
  font-weight: 900; font-size: 1.45rem; letter-spacing: -0.05em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap; }
.dark .yd-brand { color: #fff; }
.yd-brand b { color: var(--brand); font-weight: 900; }
.yd-nav-links { display: flex; align-items: center; height: 100%; }
.yd-nav-right { display: flex; align-items: center; gap: .4rem; }
.yd-icon-btn { width: 2.35rem; height: 2.35rem; border: 0; border-radius: 999px; display: inline-flex;
  align-items: center; justify-content: center; background: transparent; color: #6b7280; cursor: pointer; transition: all .18s ease; }
.yd-icon-btn:hover { color: var(--brand); background: rgba(255,77,0,.08); }
.yd-icon-sun { display: none; } .dark .yd-icon-moon { display: none; } .dark .yd-icon-sun { display: block; }
.yd-lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.dark .yd-lang { border-color: rgba(255,255,255,.12); }
.yd-lang a { padding: .4rem .7rem; font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  color: #9ca3af; transition: all .18s ease; }
.yd-lang a.active { background: var(--brand); color: #fff; }
.yd-burger { display: none; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; color: var(--ink); }
.dark .yd-burger { color: #fff; border-color: rgba(255,255,255,.12); }
.yd-mobile { display: none; padding: .75rem 1rem 1.25rem; border-top: 1px solid var(--line); background: #fff; }
.dark .yd-mobile { background: var(--ink); border-top-color: rgba(255,255,255,.08); }
.yd-mobile.open { display: flex; flex-direction: column; gap: .15rem; }
.yd-mobile .nav-link { height: auto; padding: .9rem .5rem; font-size: .82rem; border-bottom: 1px solid var(--line); }

.yd-footer { padding: 5rem 0 2.5rem; border-top: 1px solid var(--line); background: #fff; }
.dark .yd-footer { background: var(--ink); border-top-color: rgba(255,255,255,.08); }
.yd-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.yd-foot-tag { max-width: 24rem; margin: 1.25rem 0; font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  color: #6b7280; line-height: 1.75; }
.dark .yd-foot-tag { color: rgba(255,255,255,.5); }
.yd-foot-city { font-size: .8rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: #d1d5db; }
.yd-foot-bot { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex;
  flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .72rem; font-weight: 900;
  letter-spacing: .1em; text-transform: uppercase; color: #9ca3af; }
.dark .yd-foot-bot { border-top-color: rgba(255,255,255,.08); }
.yd-foot-bot a { color: var(--brand); }
.yd-foot-bot a:hover { text-decoration: underline; }

body { padding-top: 5rem; }

@media (max-width: 980px) {
  .yd-nav-links { display: none !important; }
  .yd-burger { display: inline-flex; }
  .yd-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) { .yd-footer-grid { grid-template-columns: 1fr; } }
