/* ============================================================
   Minko.ai — Shared site styles
   Premium header + footer + canonical design tokens.
   Loaded on every page (after page-specific <style> so the
   shared rules win for header/footer/button selectors).
   ============================================================ */

:root{
  --bg:#f5f7fc;
  --bg-2:#eef2fb;
  --surface:#ffffff;
  --surface-soft:#f8faff;
  --surface-tint:#f1f4fb;
  --text:#0f172a;
  --text-2:#1e2a46;
  --muted:#516079;
  --brand:#5b48f2;
  --brand-2:#7a6bf5;
  --brand-600:#4e3de0;
  --brand-700:#4032bf;
  --accent:#1a73e8;
  --line:rgba(15,23,42,.10);
  --line-2:rgba(15,23,42,.06);
  --line-strong:rgba(15,23,42,.16);
  --ok:#028a61;
  --danger:#b42318;
  --maxw:1200px;
  --reading:780px;
  --radius-lg:24px;
  --radius-md:16px;
  --radius-sm:12px;
  --shadow-sm:0 1px 2px rgba(15,23,42,.04), 0 1px 1px rgba(15,23,42,.03);
  --shadow-md:0 10px 30px rgba(15,23,42,.06), 0 2px 6px rgba(15,23,42,.04);
  --shadow-lg:0 30px 60px -20px rgba(31,40,80,.18), 0 18px 36px -18px rgba(91,72,242,.14);
  --header-h:76px;
}

/* ============ Layout primitives ============ */
.container{max-width:var(--maxw);margin:0 auto;padding:0 24px}
.narrow{max-width:var(--reading);margin:0 auto}
.muted{color:var(--muted)}

/* ============ Eyebrow / section headers ============ */
.eyebrow{
  display:inline-block;
  font-size:11px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--brand-600);
  background:rgba(91,72,242,.08);
  border:1px solid rgba(91,72,242,.22);
  padding:6px 11px;
  border-radius:999px;
}
.section-title{
  margin:0;
  font-size:clamp(1.55rem,2.6vw,2.15rem);
  line-height:1.22;
  letter-spacing:-.022em;
  font-weight:700;
}
.section-lead{
  margin:14px 0 0;
  font-size:clamp(1rem,1.35vw,1.075rem);
  line-height:1.7;
  color:var(--muted);
}
.section-head{max-width:820px;margin:0 0 28px}
.section-head.center{max-width:760px;margin:0 auto 28px;text-align:center}
.section-head .section-title{margin-top:14px}
.section{padding:72px 0}
.section-tight{padding:56px 0}
@media (max-width:760px){
  .section{padding:52px 0}
  .section-tight{padding:40px 0}
}

/* ============ Canonical button system ============ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 20px;
  min-height:44px;
  border-radius:999px;
  font-size:14.5px;
  font-weight:600;
  letter-spacing:.005em;
  border:1px solid transparent;
  transition:transform .16s ease, box-shadow .16s ease, background .2s ease, border-color .16s ease, color .16s ease;
  white-space:nowrap;
  cursor:pointer;
}
.btn:focus-visible{outline:2px solid var(--brand);outline-offset:2px}

.btn-primary{
  position:relative;
  color:#fff;
  background:linear-gradient(180deg,var(--brand) 0%,var(--brand-600) 100%);
  box-shadow:
    0 10px 24px rgba(91,72,242,.28),
    0 1px 0 rgba(255,255,255,.18) inset,
    0 0 0 1px rgba(91,72,242,.35) inset;
  overflow:hidden;
}
.btn-primary::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(120deg,transparent 0%,transparent 35%,rgba(255,255,255,.28) 50%,transparent 65%,transparent 100%);
  transform:translateX(-120%);
  transition:transform .7s ease;
  pointer-events:none;
}
.btn-primary:hover{
  transform:translateY(-1px);
  background:linear-gradient(180deg,var(--brand-600),var(--brand-700));
  box-shadow:0 16px 30px rgba(91,72,242,.34), 0 1px 0 rgba(255,255,255,.18) inset;
}
.btn-primary:hover::after{transform:translateX(120%)}

.btn-secondary{
  background:rgba(255,255,255,.85);
  color:var(--text);
  border-color:var(--line-strong);
  box-shadow:var(--shadow-sm);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.btn-secondary:hover{background:#fff;border-color:rgba(15,23,42,.26);transform:translateY(-1px)}

.btn-ghost{background:transparent;color:var(--text)}
.btn-ghost:hover{background:rgba(15,23,42,.05)}

/* ============ Premium Site Header ============ */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(245,247,252,.72);
  backdrop-filter:saturate(180%) blur(18px);
  -webkit-backdrop-filter:saturate(180%) blur(18px);
  border-bottom:1px solid rgba(15,23,42,.06);
  transition:background .25s ease, border-color .25s ease, box-shadow .25s ease, padding .25s ease;
}
/* Hairline gradient accent under the header */
.site-header::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-1px;
  height:1px;
  background:linear-gradient(90deg,
    transparent 0%,
    rgba(91,72,242,.0) 8%,
    rgba(91,72,242,.35) 50%,
    rgba(26,115,232,.0) 92%,
    transparent 100%);
  opacity:.55;
  pointer-events:none;
}
.site-header.is-scrolled{
  background:rgba(245,247,252,.92);
  border-bottom-color:rgba(15,23,42,.10);
  box-shadow:0 10px 30px -18px rgba(31,40,80,.18);
}

.site-header-inner{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:var(--header-h);
}

/* Brand */
.site-header .brand{display:flex;align-items:center;gap:10px}
.site-header .brand a{
  display:inline-flex;
  align-items:center;
  border-radius:10px;
  padding:6px 8px;
  margin:-6px -8px;
  transition:background .2s ease, transform .2s ease;
}
.site-header .brand a:hover{background:rgba(91,72,242,.06)}
.site-header .brand-logo{
  height:46px;
  display:block;
  filter:brightness(0) saturate(100%);
  opacity:.95;
  transition:opacity .2s ease, transform .2s ease;
}
.site-header .brand a:hover .brand-logo{opacity:1}

/* Nav */
.site-header .header-nav{
  display:flex;
  align-items:center;
  gap:4px;
}
.site-header .nav-links{
  display:flex;
  align-items:center;
  gap:2px;
  margin-right:10px;
  padding:4px;
  border-radius:999px;
  background:rgba(255,255,255,.55);
  border:1px solid rgba(15,23,42,.06);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.6);
}
.site-header .nav-link{
  position:relative;
  display:inline-flex;
  align-items:center;
  padding:8px 14px;
  font-size:14px;
  font-weight:600;
  color:var(--text-2);
  border-radius:999px;
  letter-spacing:.005em;
  transition:color .15s ease, background .2s ease;
}
.site-header .nav-link:hover{color:var(--brand-600);background:rgba(91,72,242,.07)}
.site-header .nav-link.is-active{
  color:var(--brand-700);
  background:linear-gradient(180deg,rgba(91,72,242,.12),rgba(91,72,242,.06));
  box-shadow:inset 0 0 0 1px rgba(91,72,242,.22);
}
.site-header .header-cta{display:inline-flex;align-items:center;gap:8px}

/* Mobile nav */
.site-header .nav-toggle{
  display:none;
  width:42px; height:42px;
  align-items:center; justify-content:center;
  border-radius:12px;
  background:rgba(255,255,255,.7);
  border:1px solid var(--line-strong);
  color:var(--text);
  cursor:pointer;
}
.site-header .nav-toggle svg{width:20px;height:20px}

@media (max-width:900px){
  .site-header .nav-links{display:none}
}
@media (max-width:680px){
  .site-header .header-cta .btn-secondary{display:none}
  .site-header .brand-logo{height:40px}
  .site-header-inner{min-height:64px;gap:12px}
  :root{--header-h:64px}
}

/* ============ Site Footer ============ */
.site-footer{
  margin-top:40px;
  padding:48px 0 32px;
  border-top:1px solid var(--line);
  background:
    radial-gradient(60% 100% at 50% 0%,rgba(91,72,242,.05) 0%,rgba(91,72,242,0) 70%),
    linear-gradient(180deg,transparent,rgba(238,242,251,.6));
  color:var(--muted);
  font-size:14px;
}
.site-footer-inner{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 24px;
}
.site-footer-top{
  display:grid;
  grid-template-columns:1.2fr 2fr;
  gap:40px;
  padding-bottom:32px;
  border-bottom:1px solid var(--line);
}
.site-footer-brand{display:flex;flex-direction:column;gap:14px;max-width:340px}
.site-footer-brand .brand-logo{
  height:38px;
  filter:brightness(0) saturate(100%);
  opacity:.9;
}
.site-footer-brand p{margin:0;font-size:14px;line-height:1.6;color:var(--muted)}
.site-footer-links{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:28px;
}
.site-footer-col h4{
  margin:0 0 12px;
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-weight:700;
  color:var(--text-2);
}
.site-footer-col ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:9px}
.site-footer-col a{
  color:var(--text-2);
  font-size:14px;
  font-weight:500;
  transition:color .15s ease;
}
.site-footer-col a:hover{color:var(--brand-600)}
.site-footer-bottom{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-top:22px;
  font-size:13px;
  color:var(--muted);
}
.site-footer-bottom a{color:var(--text-2)}
.site-footer-bottom a:hover{color:var(--brand-600)}
.site-footer-legal{display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.site-footer-legal .sep{opacity:.4}

@media (max-width:760px){
  .site-footer-top{grid-template-columns:1fr;gap:28px}
  .site-footer-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
}
@media (max-width:440px){
  .site-footer-links{grid-template-columns:1fr}
}

/* ============ Mobile nav drawer ============ */
.mobile-nav{
  position:fixed;
  inset:0;
  z-index:60;
  display:none;
  pointer-events:none;
}
.mobile-nav.is-open{display:block;pointer-events:auto}
.mobile-nav-scrim{
  position:absolute; inset:0;
  background:rgba(8,12,28,.45);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  opacity:0;
  transition:opacity .2s ease;
}
.mobile-nav.is-open .mobile-nav-scrim{opacity:1}
.mobile-nav-panel{
  position:absolute;
  top:14px; right:14px; left:14px;
  background:#fff;
  border-radius:18px;
  border:1px solid var(--line);
  box-shadow:var(--shadow-lg);
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:6px;
  transform:translateY(-12px);
  opacity:0;
  transition:transform .22s ease, opacity .22s ease;
}
.mobile-nav.is-open .mobile-nav-panel{transform:translateY(0);opacity:1}
.mobile-nav-panel .nav-link{
  display:flex; align-items:center;
  padding:12px 14px;
  font-size:15px; font-weight:600;
  color:var(--text-2);
  border-radius:12px;
}
.mobile-nav-panel .nav-link:hover,
.mobile-nav-panel .nav-link.is-active{
  background:rgba(91,72,242,.08);
  color:var(--brand-700);
}
.mobile-nav-actions{
  display:flex; flex-direction:column; gap:10px;
  margin-top:10px;
  padding-top:14px;
  border-top:1px solid var(--line-2);
}
.mobile-nav-actions .btn{width:100%}
.mobile-nav-close{
  position:absolute; top:10px; right:10px;
  width:34px; height:34px; border-radius:10px;
  background:rgba(15,23,42,.05);
  border:0; cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
  color:var(--text);
}
.mobile-nav-close:hover{background:rgba(15,23,42,.09)}

@media (min-width:901px){
  .site-header .nav-toggle{display:none !important}
  .mobile-nav{display:none !important}
}
@media (max-width:900px){
  .site-header .nav-toggle{display:inline-flex}
}
