/* ============================================================
   JASIRI — Site design system · "Clean Editorial" (Direction 1)
   Light, cobalt-led, hairline structure, Geist.
   Requires brand.css (tokens + Geist + reveal) loaded first.
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --bg2: #F2F4FF;            /* ice-50 */
  --line: #E6E7F2;
  --line2: #D3D5E8;
  --ink: #08080C;
  --ink2: #1A1A22;
  --mute: #5A5A66;
  --mute2: #8E8E9A;
  --accent: #002FF1;        /* cobalt */
  --accent2: #0023B8;       /* cobalt-700 */
  --maxw: 1240px;
}

body { background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.mono { font-family: var(--font-mono); }

/* ---------------- HEADER / NAV ---------------- */
.nav { position: sticky; top: 0; z-index: 200; background: rgba(255,255,255,0.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 74px; max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand .mark { width: 30px; height: 30px; color: var(--accent); flex: none; }
.brand .mark svg { width: 100%; height: 100%; display: block; }
.brand b { font-weight: 700; font-size: 21px; letter-spacing: 0.14em; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 500; color: var(--mute); padding: 10px 14px; border-radius: 9px; transition: color .16s, background .16s; cursor: pointer; }
.nav-item > a:hover, .nav-item.active > a { color: var(--ink); }
.nav-item.has-menu > a::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-1px); transition: transform .18s; opacity: 0.5; }
.nav-item.has-menu:hover > a::after { transform: rotate(225deg) translateY(-1px); }
.menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 248px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px -28px rgba(8,8,20,0.35); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.nav-item.has-menu:hover .menu, .nav-item.has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: none; }
.menu a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--ink2); font-size: 14px; font-weight: 500; transition: background .14s; }
.menu a small { display: block; font-size: 12px; color: var(--mute2); font-weight: 400; margin-top: 2px; }
.menu a:hover { background: var(--bg2); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff !important; font-size: 13.5px; font-weight: 600; padding: 11px 20px; border-radius: 999px; white-space: nowrap; transition: background .18s, transform .18s; }
.nav-cta:hover { background: var(--accent2); transform: translateY(-1px); }
.nav-burger { display: none; }

/* mobile drawer */
.m-drawer { display: none; position: sticky; top: 74px; z-index: 190; background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px 22px; }
.m-drawer.open { display: block; }
.m-drawer .md-top { display: block; padding: 11px 0; font-weight: 600; font-size: 16px; border-bottom: 1px solid var(--line); }
.m-drawer .md-group { padding: 12px 0; border-bottom: 1px solid var(--line); }
.m-drawer .md-group b { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute2); margin-bottom: 8px; }
.m-drawer .md-group a { display: block; padding: 8px 0 8px 12px; font-size: 15px; color: var(--ink2); }
@media (max-width: 1000px) { .m-drawer { } }

/* ---------------- BUTTONS ---------------- */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 26px; border-radius: 999px; font-size: 15px; font-weight: 600; transition: all .18s; cursor: pointer; white-space: nowrap; border: 1px solid transparent; font-family: inherit; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); border-color: var(--line2); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--accent); }
.btn-light:hover { background: var(--bg2); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-1px); }

/* ---------------- TYPE / SECTION SHELL ---------------- */
section.block { padding: 104px 0; }
.kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; display: inline-block; }
.kicker.light { color: var(--aero); }
h1, h2, h3 { letter-spacing: -0.025em; }
h2.title { font-size: clamp(34px, 4vw, 56px); font-weight: 640; line-height: 1.06; }
.lead { margin-top: 20px; font-size: 19px; color: var(--mute); line-height: 1.55; max-width: 640px; }
.sec-head { max-width: 760px; }

/* ---------------- PAGE HERO (inner pages) ---------------- */
.phero { border-bottom: 1px solid var(--line); background: radial-gradient(120% 90% at 100% 0%, var(--bg2) 0%, #fff 56%); }
.phero .wrap { padding-top: 70px; padding-bottom: 70px; }
.crumb { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute2); margin-bottom: 20px; display: flex; gap: 8px; align-items: center; }
.crumb a:hover { color: var(--accent); }
.crumb .sep { opacity: 0.5; }
.phero h1 { font-size: clamp(38px, 5vw, 68px); font-weight: 640; line-height: 1.02; max-width: 16ch; }
.phero h1 .accent { color: var(--accent); }
.phero .psub { margin-top: 22px; font-size: 19px; color: var(--mute); max-width: 600px; line-height: 1.55; }
.phero-actions { margin-top: 32px; display: flex; gap: 13px; flex-wrap: wrap; }
.phero.dark { background: var(--ink); border-bottom: none; }
.phero.dark h1 { color: #fff; }
.phero.dark .psub { color: rgba(255,255,255,0.74); }
.phero.dark .crumb { color: rgba(255,255,255,0.5); }

/* media hero variant with image */
.phero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.phero-media { aspect-ratio: 4/5; border-radius: 18px; overflow: hidden; background: var(--ice); }
.phero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- GENERIC CARD GRID ---------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px 30px; transition: border-color .25s, transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.card:hover { border-color: var(--line2); transform: translateY(-3px); box-shadow: 0 18px 50px -30px rgba(0,47,241,0.25); }
.card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--bg2); color: var(--accent); display: grid; place-items: center; margin-bottom: 20px; }
.card .ico svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.card .num { font-family: var(--font-mono); font-size: 12px; color: var(--mute2); letter-spacing: 0.08em; }
.card h3 { font-size: 22px; font-weight: 620; margin-top: 4px; }
.card p { margin-top: 12px; font-size: 15.5px; color: var(--mute); line-height: 1.55; flex: 1; }
.card .go { margin-top: 18px; font-size: 13.5px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }

/* pill / tag */
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--bg2); color: var(--accent); }
.pill.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--fuchsia); }

/* ---------------- STAT ROW ---------------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1.5px solid var(--ink); }
.stat { padding: 30px 26px 28px 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .v { font-size: clamp(42px,5vw,66px); font-weight: 660; letter-spacing: -0.03em; line-height: 1; }
.stat .v small { font-size: 0.4em; color: var(--accent); font-weight: 600; margin-left: 3px; }
.stat .k { margin-top: 13px; font-size: 14px; color: var(--mute); line-height: 1.45; max-width: 210px; }

/* ---------------- FEATURE LIST (product detail) ---------------- */
.flist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.flist li { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.flist li b { font-size: 16px; font-weight: 620; }
.flist li span { color: var(--mute); font-size: 15.5px; }

/* ---------------- TEAM GRID ---------------- */
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.member { }
.member .ph { aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; background: var(--bg2); position: relative; }
.member .ph img { width: 100%; height: 100%; object-fit: cover; }
.member .ph .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mute2); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.member h3 { font-size: 17px; font-weight: 620; margin-top: 14px; }
.member .role { font-size: 13.5px; color: var(--accent); font-weight: 500; margin-top: 2px; }
.member .bio { font-size: 13.5px; color: var(--mute); margin-top: 8px; line-height: 1.5; }

/* ---------------- LISTS (blog / podcast / careers) ---------------- */
.rowlist { border-top: 1px solid var(--line); }
.lrow { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding .2s; }
.lrow:hover { background: linear-gradient(90deg, var(--bg2), transparent); }
.lrow .meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute2); white-space: nowrap; }
.lrow h3 { font-size: clamp(19px,2vw,24px); font-weight: 600; }
.lrow p { font-size: 15px; color: var(--mute); margin-top: 6px; max-width: 640px; }
.lrow .arrow { font-size: 20px; color: var(--mute2); transition: color .2s, transform .2s; }
.lrow:hover .arrow { color: var(--accent); transform: translateX(5px); }

/* blog feature cards */
.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.post { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; transition: transform .25s, border-color .25s; }
.post:hover { transform: translateY(-4px); border-color: var(--line2); }
.post .pm { aspect-ratio: 16/10; overflow: hidden; background: var(--bg2); }
.post .pm img { width: 100%; height: 100%; object-fit: cover; }
.post .pb { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.post .cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.post h3 { font-size: 20px; font-weight: 620; margin-top: 10px; line-height: 1.2; }
.post p { font-size: 14.5px; color: var(--mute); margin-top: 10px; flex: 1; line-height: 1.5; }
.post .date { font-size: 12.5px; color: var(--mute2); margin-top: 16px; }

/* ---------------- SHOP GRID ---------------- */
.shop-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.product { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; transition: transform .25s, border-color .25s; }
.product:hover { transform: translateY(-4px); border-color: var(--line2); }
.product .pim { aspect-ratio: 1/1; background: var(--bg2); position: relative; overflow: hidden; display: grid; place-items: center; }
.product .pim img { width: 100%; height: 100%; object-fit: cover; }
.product .pim .ph { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute2); }
.product .pim .tag { position: absolute; top: 12px; left: 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--fuchsia); color: #000; padding: 4px 9px; border-radius: 6px; }
.product .pin { padding: 16px 18px 20px; }
.product .pn { font-size: 15px; font-weight: 620; }
.product .pd { font-size: 13px; color: var(--mute); margin-top: 3px; }
.product .pp { font-size: 15px; font-weight: 700; color: var(--ink); margin-top: 10px; }

/* ---------------- FORM ---------------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 600; }
.field input, .field select, .field textarea { font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--line2); border-radius: 11px; padding: 13px 15px; transition: border-color .16s, box-shadow .16s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,47,241,0.12); }
.field textarea { resize: vertical; min-height: 130px; }

/* ---------------- DARK BAND / CTA ---------------- */
.band-dark { background: var(--ink); color: #fff; }
.band-dark h2 { color: #fff; }
.band-dark .lead { color: rgba(255,255,255,0.72); }
.cta-band { background: var(--accent); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(38px,5.2vw,72px); font-weight: 640; letter-spacing: -0.03em; max-width: 900px; margin: 0 auto; }
.cta-band p { margin: 22px auto 0; max-width: 540px; font-size: 18px; color: rgba(255,255,255,0.84); }
.cta-band .btn { margin-top: 34px; }

.community-band { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.community-band .cbg { position: absolute; inset: 0; z-index: 1; }
.community-band .cbg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.community-band .cbg::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(8,8,12,0.92) 36%, rgba(8,8,12,0.5)); }
.community-band .wrap { position: relative; z-index: 2; }

/* ---------------- FOOTER ---------------- */
.footer { background: var(--ink); color: #fff; padding: 80px 0 38px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.3fr; gap: 36px; }
.foot-brand .mark { width: 34px; height: 34px; color: #fff; }
.foot-brand .mark svg { width: 100%; height: 100%; }
.foot-brand b { font-size: 23px; letter-spacing: 0.14em; font-weight: 700; display: block; margin: 14px 0 12px; }
.foot-brand p { color: rgba(255,255,255,0.5); font-size: 13.5px; max-width: 270px; line-height: 1.6; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px; font-weight: 500; }
.foot-col a { display: block; color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 11px; }
.foot-col a:hover { color: #fff; }
.foot-news input { width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); color: #fff; padding: 12px 14px; border-radius: 999px; font-family: inherit; font-size: 13px; margin-bottom: 10px; }
.foot-news input::placeholder { color: rgba(255,255,255,0.4); }
.foot-news button { width: 100%; background: #fff; color: var(--ink); border: none; padding: 12px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.foot-base { margin-top: 64px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: rgba(255,255,255,0.42); font-size: 12.5px; }
.foot-base b { color: var(--fuchsia); }
.foot-social { display: flex; gap: 10px; }
.foot-social a { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.18); border-radius: 9px; display: grid; place-items: center; color: rgba(255,255,255,0.7); }
.foot-social a:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
.foot-social svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1000px) {
  .wrap, .nav-in { padding-left: 24px; padding-right: 24px; }
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .grid-4, .team-grid, .shop-grid { grid-template-columns: 1fr 1fr; }
  .grid-3, .post-grid { grid-template-columns: 1fr; }
  .grid-2, .phero-grid, .stats { grid-template-columns: 1fr; gap: 28px; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .flist li { grid-template-columns: 1fr; gap: 6px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .lrow { grid-template-columns: 1fr; gap: 8px; }
  .lrow .arrow { display: none; }
}
