/* EdgeTools — Maven theme (v4)
   Font: Inter · Primary: #193FD7 · Derived from the Maven Systems design system */

:root {
    --brand:      #193FD7;
    --brand-dark: #1434be;
    --cyan:       #008DF3;
    --sky:        #00A5EF;
    --deep:       #003EFF;
    --ink:        #111827;
    --body:       #5a6477;
    --muted:      #6b7280;
    --faint:      #9ca3af;
    --bg:         #f8f9fb;
    --alt:        #f3f6fc;
    --panel:      #f0f3fa;
    --listbg:     #f7f9fe;
    --surface:    #ffffff;
    --line:       #e2e7f3;
    --line-2:     #eef0f6;
    --line-3:     #e8ecf2;
    --ok:  #059669; --ok-bg: #ecfdf5;
    --err: #c0362c; --err-bg: #fcecea; --err-line: #f2c7c2;
    --sh-card: 0 2px 4px rgba(0,0,0,.04), 0 8px 24px rgba(25,63,215,.06);
    --sh-lift: 0 12px 32px rgba(0,0,0,.06);
    --sh-showcase: 0 2px 4px rgba(0,0,0,.04), 0 8px 24px rgba(25,63,215,.06), 0 32px 64px rgba(25,63,215,.05);
    --font: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: var(--font); font-size: 15px; line-height: 1.65;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid rgba(25,63,215,.35); outline-offset: 2px; border-radius: 4px; }

.shell { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.narrow { max-width: 860px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- header (logo left, nav right) ---------- */
.site-head-wrap {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-3);
}
.site-head { display: flex; align-items: center; gap: 24px; padding-block: 13px; flex-wrap: wrap; }
.brand { display: block; margin-right: auto; }
.logo-img { height: 50px; width: auto; display: block; }
.logo-img-sm { height: 36px; width: auto; }
.site-nav { display: flex; gap: 2px; flex-wrap: wrap; margin-left: auto; }
.site-nav a {
    text-decoration: none; color: var(--body); font-weight: 500; font-size: 13.5px;
    padding: 8px 13px; border-radius: 8px;
    transition: color .18s, background-color .18s;
}
.site-nav a:hover { color: var(--brand); background: #eef2fd; }
.site-nav a.active { color: var(--brand); font-weight: 600; box-shadow: inset 0 -2px 0 var(--brand); border-radius: 8px 8px 0 0; }

/* ---------- type & shared bits ---------- */
h1, h2, h3 { font-family: var(--font); letter-spacing: -.02em; line-height: 1.2; margin: 0 0 .4em; }
.page-title { font-size: 32px; font-weight: 700; margin-block: 40px 18px; }
.lede { color: var(--body); font-size: 15.5px; line-height: 1.75; max-width: 64ch; }
.band { padding-block: 64px; }
.band-title { font-size: 24px; font-weight: 700; }
.empty { color: var(--muted); padding-block: 26px; }

.eyebrow { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 16px; }
.eyebrow-line { height: 1px; width: 40px; background: linear-gradient(90deg, transparent, #c7d4f5); }
.eyebrow-line.r { background: linear-gradient(90deg, #c7d4f5, transparent); }
.eyebrow span {
    font-size: 11px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--brand);
}
.section-label {
    font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--cyan); margin-bottom: 12px;
}
.section-h2 { font-size: 36px; font-weight: 700; color: #151b28; margin-bottom: 12px; }
.section-sub { font-size: 16px; color: var(--body); max-width: 540px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 48px; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 11px 24px; border-radius: 8px; border: 1px solid transparent;
    font: 600 13.5px var(--font); text-decoration: none; cursor: pointer;
    transition: all .2s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(25,63,215,.2); }
.btn-ghost { background: #fff; border-color: #dde3ee; color: var(--body); font-weight: 500; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- hero (section 1) ---------- */
.hero-v4 { background: var(--surface); text-align: center; padding-block: clamp(64px, 9vw, 104px) 56px; }
.hero-v4 h1 { font-size: clamp(32px, 4.6vw, 50px); font-weight: 700; color: var(--ink); }
.hero-v4 h1 span { color: var(--brand); }
.hero-v4 .lede { margin-inline: auto; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- feature showcase (section 2, Maven fsc pattern) ---------- */
.fsc-section { background: var(--surface); padding-bottom: 80px; }
.fsc-grid {
    display: grid; grid-template-columns: 320px 1fr; gap: 0; align-items: stretch;
    background: #fff; border: 1px solid var(--line); border-radius: 24px;
    overflow: hidden; box-shadow: var(--sh-showcase);
}
.fsc-list {
    background: var(--listbg); border-right: 1px solid var(--line);
    padding: 8px; display: flex; flex-direction: column; gap: 2px;
}
.fsc-item {
    display: flex; align-items: flex-start; gap: 13px; padding: 16px 14px;
    border-radius: 14px; cursor: pointer; position: relative;
    border: 1px solid transparent; background: transparent; text-align: left;
    font-family: var(--font); width: 100%;
    transition: background .18s, box-shadow .18s;
}
.fsc-item:hover { background: #fff; border-color: var(--line); }
.fsc-item.active { background: #fff; border-color: #d0dbf8; box-shadow: 0 2px 12px rgba(25,63,215,.08); }
.fsc-item.active::before {
    content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px;
    border-radius: 0 3px 3px 0; background: var(--brand);
}
.fsc-icon-wrap {
    width: 36px; height: 36px; border-radius: 10px; background: #eef2fd;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
    transition: background .18s;
}
.fsc-icon-wrap svg { width: 16px; height: 16px; color: var(--brand); transition: color .18s; }
.fsc-item.active .fsc-icon-wrap { background: var(--brand); }
.fsc-item.active .fsc-icon-wrap svg { color: #fff; }
.fsc-title { font-size: 13.5px; font-weight: 600; color: #1f2937; margin-bottom: 3px; line-height: 1.3; }
.fsc-item.active .fsc-title { color: var(--brand); }
.fsc-desc { font-size: 11.5px; color: var(--faint); line-height: 1.5; }
.fsc-item.active .fsc-desc { color: var(--muted); }

.fsc-screen-wrap {
    background: var(--panel); display: flex; flex-direction: column; align-items: center;
    padding: 28px 28px 0; position: relative; overflow: hidden; min-height: 480px;
}
.fsc-screen-wrap::before {
    content: ''; position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
    width: 480px; height: 300px;
    background: radial-gradient(ellipse at center, rgba(25,63,215,.09) 0%, transparent 70%);
    pointer-events: none;
}
.fsc-browser {
    width: 100%; max-width: 680px; background: #e4e8f2; border-radius: 12px 12px 0 0;
    padding: 9px 10px 0; position: relative; z-index: 1;
    box-shadow: 0 4px 16px rgba(0,0,0,.08), 0 20px 48px rgba(25,63,215,.10);
}
.fsc-browser-bar { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; padding-left: 2px; }
.fsc-dot { width: 8px; height: 8px; border-radius: 50%; }
.fsc-dot.r { background: #FF5F57; } .fsc-dot.a { background: #FFBD2E; } .fsc-dot.g { background: #28C840; }
.fsc-urlbar {
    flex: 1; height: 20px; background: rgba(255,255,255,.55); border-radius: 4px; margin: 0 8px;
    display: flex; align-items: center; padding: 0 8px; gap: 5px;
}
.fsc-urlbar-lock { width: 8px; height: 8px; border-radius: 50%; background: #10b981; flex-shrink: 0; }
.fsc-urlbar-text { font-size: 9px; color: var(--muted); letter-spacing: .01em; }

.fsc-panel { display: none; animation: fscFade .3s ease; }
.fsc-panel.active { display: block; }
@keyframes fscFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fsc-mockup-inner {
    background: #fff; border-radius: 8px 8px 0 0; border: 1px solid #d5dae8; border-bottom: none;
    overflow: hidden; height: 380px;
}
.m-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 14px; background: #fff; border-bottom: 1px solid #f0f2f7;
}
.m-topbar-l { display: flex; align-items: center; gap: 8px; }
.m-pill { background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.m-crumb { font-size: 10px; color: var(--faint); }
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px 16px; }
.tile { background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 8px 10px; text-align: center; }
.tile img { width: 100%; height: 128px; object-fit: contain; margin-bottom: 6px; }
.tile-cap { font-size: 10.5px; font-weight: 600; color: #374151; line-height: 1.35; }

/* ---------- categories (section 3) ---------- */
.cats-section { background: var(--alt); }
.catcard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.catcard {
    position: relative; background: #fff; border: 1px solid var(--line-3); border-radius: 16px;
    padding: 24px 26px 22px; text-decoration: none; color: var(--ink); overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.catcard:hover { transform: translateY(-4px); box-shadow: var(--sh-lift); }
.catcard::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.catcard.cc-0::before { background: linear-gradient(90deg, #00A5EF, #5fd3ff); }
.catcard.cc-1::before { background: linear-gradient(90deg, #008DF3, #5fc5ff); }
.catcard.cc-2::before { background: linear-gradient(90deg, #003EFF, #5C85FF); }
.catcard-name { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.catcard-count { font-size: 12.5px; color: var(--faint); }
.catcard-go { position: absolute; right: 20px; top: 24px; color: var(--brand); font-weight: 700; opacity: 0; transform: translateX(-4px); transition: all .2s; }
.catcard:hover .catcard-go { opacity: 1; transform: none; }

/* ---------- contact (section 4) + contact page ---------- */
.contact-section { background: var(--surface); }
.info-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.contact-card {
    background: #fff; border: 1px solid var(--line-3); border-radius: 16px;
    padding: 26px 28px; box-shadow: var(--sh-card);
}
.contact-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.contact-row { display: flex; gap: 12px; padding: 6px 0; font-size: 14px; color: var(--ink); }
.contact-row .cr-label {
    color: var(--faint); min-width: 52px; font-weight: 700; font-size: 10.5px;
    text-transform: uppercase; letter-spacing: .08em; padding-top: 3px;
}
.contact-row a { text-decoration: none; }
.contact-row a:hover { text-decoration: underline; }

/* ---------- forms ---------- */
.form-card, .auth-card {
    background: #fff; border: 1px solid var(--line-3); border-radius: 16px;
    padding: 28px; box-shadow: var(--sh-card); margin-block: 20px 48px;
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; margin-bottom: 22px; }
.field label {
    display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.field input, .field textarea, .field select, .filter-bar select {
    width: 100%; border: 1px solid #dde3ee; border-radius: 8px;
    padding: 11px 13px; font: 400 14.5px var(--font); background: #fff; color: var(--ink);
    transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field textarea:focus, .field select:focus, .filter-bar select:focus {
    border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(25,63,215,.13);
}
.field-err { color: var(--err); font-size: 13px; margin: 6px 0 0; }
.span-2 { grid-column: 1 / -1; }

.auth-wrap { display: grid; place-items: start center; padding-block: 64px 96px; }
.auth-card { width: min(400px, 100%); }
.auth-card h1 { font-size: 22px; font-weight: 700; }
.auth-card .field { margin-bottom: 15px; }

.alert { border-radius: 10px; padding: 12px 15px; font-size: 14px; margin-block: 14px; }
.alert.ok  { background: var(--ok-bg); border: 1px solid #bce3cc; color: #065f46; }
.alert.err { background: var(--err-bg); border: 1px solid var(--err-line); }

/* ---------- admin ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-block: 40px 20px; }
.toolbar .page-title { margin: 0; }
.stat-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.stat {
    background: #fff; border: 1px solid var(--line-3); border-radius: 16px;
    padding: 22px 28px; min-width: 210px; text-decoration: none; color: var(--ink);
    box-shadow: var(--sh-card); transition: transform .2s, box-shadow .2s;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--sh-lift); }
.stat-num { display: block; font-size: 38px; font-weight: 700; color: var(--brand); }
.stat-label { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

.table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff;
         border: 1px solid var(--line-3); border-radius: 16px; overflow: hidden; box-shadow: var(--sh-card); }
.table th {
    text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--faint); background: #f0f2f7;
    padding: 12px 16px; border-bottom: 1px solid var(--line-2);
}
.table td { padding: 11px 16px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--listbg); }
.filter-bar { display: flex; align-items: end; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.filter-bar label {
    display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.filter-bar select { width: 260px; }
.pager { display: flex; align-items: center; gap: 20px; margin-block: 24px 64px; font-size: 13.5px; }
.pager a { text-decoration: none; font-weight: 600; }
.pager-status { color: var(--muted); }
.inline-form { display: inline; margin: 0; }
.link-danger {
    color: var(--err); font-weight: 600; background: none; border: 0; padding: 0;
    cursor: pointer; font: 600 13.5px var(--font);
}
.link-danger:hover { text-decoration: underline; }

/* ---------- products page (accordion + cards) ---------- */
.catalog-layout { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: start; margin-bottom: 64px; }
.acc { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 80px; }
.acc-all {
    display: block; text-decoration: none; font: 600 14px var(--font); color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 12px 16px; box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.acc-all:hover { border-color: #d0dbf8; background: var(--listbg); }
.acc-all.sel { border-color: #d0dbf8; background: #eef2fd; color: var(--brand); box-shadow: 0 2px 12px rgba(25,63,215,.08); }
.acc details { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.acc details[open] { border-color: #d0dbf8; box-shadow: 0 2px 12px rgba(25,63,215,.08); }
.acc summary {
    list-style: none; cursor: pointer; padding: 12px 16px; font: 600 14px var(--font);
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; color: var(--brand); font-weight: 700; font-size: 16px; }
.acc details[open] summary { color: var(--brand); }
.acc details[open] summary::after { content: '\2013'; }
.acc summary:hover { background: var(--listbg); }
.acc .acc-count { color: var(--faint); font-weight: 500; font-size: 12.5px; margin-left: auto; }
.acc-items { border-top: 1px solid var(--line-2); padding: 7px 8px 10px; display: flex; flex-direction: column; }
.acc-items a { text-decoration: none; color: var(--muted); font-size: 13.5px; padding: 6px 10px; border-radius: 8px; }
.acc-items a:hover { background: #eef2fd; color: var(--brand); }
.anchor-wrap { scroll-margin-top: 90px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; font-size: 19px; font-weight: 700; }
.panel-head a { font-weight: 600; font-size: 13.5px; text-decoration: none; }

.grid-products { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card {
    background: #fff; border: 1px solid var(--line-3); border-radius: 16px; overflow: hidden;
    box-shadow: var(--sh-card); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lift); }
.card-media { aspect-ratio: 4 / 3; background: var(--listbg); display: grid; place-items: center; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.card-plate { padding: 14px 16px 6px; }
.card-plate h3 { font-size: 16px; font-weight: 700; margin: 0; }
.card-cat { margin: 3px 0 0; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.spec-list { margin: 8px 0 0; padding: 8px 16px 14px; border-top: 1px solid var(--line-2); }
.spec-row { display: flex; justify-content: space-between; gap: 12px; padding-block: 4px; font-size: 13px; }
.spec-row dt { color: var(--faint); text-transform: uppercase; font-size: 10px; font-weight: 700; letter-spacing: .06em; align-self: center; }
.spec-row dd { margin: 0; text-align: right; font-weight: 500; color: #374151; }

/* about page checklist */
.cat-list { columns: 3 260px; column-gap: 36px; }
.cat-list a { display: flex; gap: 9px; align-items: center; padding: 6px 0; text-decoration: none; color: var(--ink); font-size: 14px; break-inside: avoid; }
.cat-list a::before {
    content: '\2713'; color: #fff; background: var(--brand); border-radius: 6px;
    width: 18px; height: 18px; font-size: 11px; display: grid; place-items: center; flex: 0 0 18px;
}
.cat-list a:hover { color: var(--brand); }

/* ---------- footer (with admin login) ---------- */
.site-foot { background: #fff; border-top: 1px solid var(--line-3); margin-top: 56px; padding-block: 36px 44px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 32px; align-items: start; }
.foot-note { color: var(--body); font-size: 13px; margin: 10px 0 0; max-width: 40ch; }
.foot-h { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 0 0 10px; }
.foot-contact { color: var(--body); font-size: 13px; line-height: 1.9; }
.foot-contact a { text-decoration: none; }
.foot-admin form { margin: 8px 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .fsc-grid { grid-template-columns: 1fr; }
    .fsc-list { border-right: none; border-bottom: 1px solid var(--line); flex-direction: row; overflow-x: auto; gap: 4px; scrollbar-width: none; }
    .fsc-list::-webkit-scrollbar { display: none; }
    .fsc-item { flex-direction: column; align-items: center; text-align: center; flex-shrink: 0; min-width: 130px; padding: 12px 10px; gap: 8px; }
    .fsc-item.active::before { top: auto; bottom: 0; left: 12px; right: 12px; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
    .fsc-desc { display: none; }
    .fsc-screen-wrap { padding: 20px 16px 0; min-height: 340px; }
    .fsc-mockup-inner { height: 300px; }
    .tile img { height: 90px; }
    .catalog-layout, .info-grid { grid-template-columns: 1fr; }
    .acc { position: static; }
    .foot-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 640px) {
    .field-grid { grid-template-columns: 1fr; }
    .tile-grid { grid-template-columns: repeat(2, 1fr); }
    .fsc-mockup-inner { height: auto; }
    .section-h2 { font-size: 26px; }
    .page-title { font-size: 26px; }
    .band { padding-block: 48px; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}
