/* Impresa Click — B2B Operations Dashboard
   Local design system. No external assets. */

:root {
  --bg: #0b0f17;
  --bg-2: #0f1521;
  --panel: #131b2b;
  --panel-2: #18233a;
  --line: #233149;
  --line-soft: #1b2638;
  --ink: #eaf0fb;
  --ink-2: #aab8d4;
  --ink-3: #748098;
  --brand: #38e0c4;
  --brand-2: #4f8cff;
  --brand-3: #9b6bff;
  --amber: #ffb347;
  --good: #46d39a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -24px rgba(0,0,0,.7);
  --maxw: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.eyebrow {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- Scroll progress ---------- */
#scrollbar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3));
  z-index: 1000;
  box-shadow: 0 0 12px rgba(79,140,255,.6);
}

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 900;
  backdrop-filter: blur(14px);
  background: rgba(11,15,23,.78);
  border-bottom: 1px solid var(--line-soft);
}
.head-row { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.01em; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; color: #061018; font-size: 1rem;
  box-shadow: 0 6px 18px -6px var(--brand-2);
}
.brand small { display: block; font-size: .66rem; color: var(--ink-3); font-weight: 500; letter-spacing: .04em; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--ink-2); font-size: .92rem; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: .92rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .18s, box-shadow .2s, background .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #061018;
  box-shadow: 0 10px 26px -10px var(--brand-2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px var(--brand-2); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.nav-toggle { display: none; }

/* ---------- Animated gradient border helper ---------- */
.gborder { position: relative; border-radius: var(--radius); }
.gborder::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(120deg, var(--brand), var(--brand-2), var(--brand-3), var(--brand));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: borderflow 7s linear infinite;
  pointer-events: none;
}
@keyframes borderflow { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }

/* ---------- Hero / operations dashboard ---------- */
.hero { padding: 46px 0 30px; position: relative; }
.hero::after {
  content: ""; position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 480px; background: radial-gradient(ellipse at center, rgba(79,140,255,.16), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero h1 { font-size: clamp(2.05rem, 4.6vw, 3.35rem); margin: 16px 0 14px; }
.hero h1 .hl { background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--ink-2); font-size: 1.08rem; max-width: 600px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* status ticker */
.ticker { overflow: hidden; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--bg-2); margin-top: 26px; }
.ticker-track { display: flex; gap: 44px; white-space: nowrap; padding: 9px 0; animation: ticker 26s linear infinite; width: max-content; }
.ticker-track span { font-family: var(--mono); font-size: .78rem; color: var(--ink-3); display: inline-flex; align-items: center; gap: 8px; }
.ticker-track span b { color: var(--good); }
.ticker-track i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* bento dashboard grid */
.bento {
  display: grid; gap: 14px; margin-top: 30px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(120px, auto);
}
.cell {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 18px; position: relative; overflow: hidden;
}
.cell h4 { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); font-weight: 600; }
.cell .big { font-size: 2rem; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; }
.cell .sub { font-size: .82rem; color: var(--ink-2); margin-top: 4px; }
.cell-feat { grid-column: span 2; grid-row: span 2; padding: 0; }
.cell-feat img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.cell-feat .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px;
  background: linear-gradient(0deg, rgba(7,11,18,.92), transparent);
}
.cell-feat .cap .tag { font-family: var(--mono); font-size: .72rem; color: var(--brand); letter-spacing: .1em; }
.cell-feat .cap h3 { font-size: 1.25rem; margin-top: 4px; }
.cell-wide { grid-column: span 2; }
.cell-img { padding: 0; }
.cell-img img { width: 100%; height: 100%; object-fit: cover; min-height: 130px; }

/* lane chips inside a cell */
.lanes-mini { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.lane-chip { display: flex; align-items: center; gap: 10px; font-size: .84rem; }
.lane-chip .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.lane-chip .bar { flex: 1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.lane-chip .bar i { display: block; height: 100%; border-radius: 99px; }
.lane-chip .pct { font-family: var(--mono); font-size: .76rem; color: var(--ink-3); width: 36px; text-align: right; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.sec-head { max-width: 660px; margin-bottom: 34px; }
.sec-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 12px 0 12px; }
.sec-head p { color: var(--ink-2); font-size: 1.02rem; }
.alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* ---------- SLA-free service lanes ---------- */
.lanes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lane {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 22px; transition: transform .2s, border-color .2s;
}
.lane:hover { transform: translateY(-4px); border-color: var(--line); }
.lane .lane-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.lane .idx { font-family: var(--mono); font-size: .8rem; color: var(--ink-3); }
.lane .status { font-family: var(--mono); font-size: .68rem; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-2); }
.lane h3 { font-size: 1.18rem; margin-bottom: 8px; }
.lane p { font-size: .92rem; color: var(--ink-2); }
.lane ul { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.lane li { font-size: .88rem; color: var(--ink-2); display: flex; gap: 9px; align-items: flex-start; }
.lane li::before { content: "▸"; color: var(--brand); flex: none; }

/* ---------- Tabs / matrix (primary interaction) ---------- */
.segmented {
  display: inline-flex; padding: 5px; gap: 4px; background: var(--bg-2);
  border: 1px solid var(--line-soft); border-radius: 12px; flex-wrap: wrap;
}
.seg-btn {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  color: var(--ink-2); font-family: var(--font); font-size: .9rem; font-weight: 600;
  padding: 9px 18px; border-radius: 9px; transition: color .2s, background .2s; display: inline-flex; align-items: center; gap: 8px;
}
.seg-btn .mk { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .5; }
.seg-btn[aria-selected="true"] {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #061018;
  box-shadow: 0 8px 22px -10px var(--brand-2);
}
.seg-btn[aria-selected="true"] .mk { opacity: 1; }

.panel-card {
  margin-top: 22px; background: var(--panel); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.panel-grid { display: grid; grid-template-columns: 1.05fr .95fr; }
.panel-media { position: relative; min-height: 380px; }
.panel-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.panel-media .meta {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  background: rgba(7,11,18,.72); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  display: flex; gap: 18px; font-family: var(--mono); font-size: .76rem;
}
.panel-media .meta div span { display: block; color: var(--ink-3); font-size: .66rem; letter-spacing: .08em; }
.panel-media .meta div b { color: var(--ink); font-size: .92rem; }
.panel-body { padding: 30px; }
.panel-body h3 { font-size: 1.5rem; margin-bottom: 6px; }
.panel-body .role { font-family: var(--mono); font-size: .76rem; color: var(--brand); letter-spacing: .1em; }
.panel-body > p { color: var(--ink-2); margin: 14px 0 18px; font-size: .96rem; }
.task-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line-soft); }
.task-list .row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.task-list .row .tick { width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--brand); flex: none; display: grid; place-items: center; color: var(--brand); font-size: .7rem; }
.task-list .row .txt { flex: 1; font-size: .9rem; }
.task-list .row .tag2 { font-family: var(--mono); font-size: .68rem; color: var(--ink-3); padding: 2px 8px; border: 1px solid var(--line); border-radius: 99px; }
.panel { display: none; }
.panel.is-active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Comparison blocks ---------- */
.compare-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: stretch; }
.compare-img { border-radius: var(--radius); overflow: hidden; min-height: 320px; position: relative; }
.compare-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.compare-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cmp {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px;
}
.cmp.pro { border-color: rgba(56,224,196,.4); background: linear-gradient(180deg, rgba(56,224,196,.06), transparent); }
.cmp h4 { font-size: .96rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.cmp h4 .pill { font-family: var(--mono); font-size: .62rem; padding: 2px 8px; border-radius: 99px; }
.cmp.pro h4 .pill { background: rgba(56,224,196,.18); color: var(--brand); }
.cmp.base h4 .pill { background: var(--line); color: var(--ink-3); }
.cmp ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.cmp li { font-size: .87rem; color: var(--ink-2); display: flex; gap: 9px; align-items: flex-start; }
.cmp.pro li::before { content: "✓"; color: var(--brand); font-weight: 700; flex: none; }
.cmp.base li::before { content: "—"; color: var(--ink-3); flex: none; }

/* ---------- Process timeline ---------- */
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand), var(--brand-3)); opacity: .5; }
.tstep { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 16px 0; position: relative; }
.tstep .num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--panel); border: 2px solid var(--brand);
  display: grid; place-items: center; font-family: var(--mono); font-weight: 700; color: var(--brand); z-index: 2;
}
.tstep .tbody { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px 20px; }
.tstep .tbody h3 { font-size: 1.08rem; margin-bottom: 6px; }
.tstep .tbody p { font-size: .92rem; color: var(--ink-2); }
.tstep .tbody .kv { font-family: var(--mono); font-size: .72rem; color: var(--ink-3); margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.acc { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--panel); overflow: hidden; }
.acc-q {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: 18px 20px; font-size: 1rem; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font);
}
.acc-q .ico { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .25s, background .25s, color .25s; color: var(--brand); }
.acc-q[aria-expanded="true"] .ico { transform: rotate(45deg); background: var(--brand); color: #061018; }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-a p { padding: 0 20px 18px; color: var(--ink-2); font-size: .94rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }
.contact-media { border-radius: var(--radius); overflow: hidden; position: relative; min-height: 420px; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.contact-media .info {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: rgba(7,11,18,.82); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 12px; padding: 18px;
}
.contact-media .info .line { display: flex; gap: 10px; align-items: center; font-size: .9rem; padding: 5px 0; color: var(--ink-2); }
.contact-media .info .line b { color: var(--ink); }
.contact-media .info .line .k { font-family: var(--mono); font-size: .68rem; color: var(--brand); width: 64px; flex: none; letter-spacing: .08em; }
.form-card { background: var(--panel); border-radius: var(--radius); padding: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .8rem; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px;
  padding: 12px 14px; color: var(--ink); font-family: var(--font); font-size: .94rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(56,224,196,.14); }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: .78rem; color: var(--ink-3); margin-top: 6px; }
.form-msg { margin-top: 12px; font-size: .9rem; padding: 12px 14px; border-radius: 9px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: rgba(70,211,154,.12); border: 1px solid rgba(70,211,154,.4); color: var(--good); }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line-soft); background: var(--bg-2); padding: 50px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
.foot-grid p { color: var(--ink-3); font-size: .9rem; margin-top: 12px; max-width: 320px; }
.foot-col h5 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); margin-bottom: 14px; }
.foot-col a, .foot-col .li { display: block; color: var(--ink-3); font-size: .9rem; padding: 4px 0; transition: color .2s; }
.foot-col a:hover { color: var(--brand); }
.legal-bar { border-top: 1px solid var(--line-soft); margin-top: 34px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.legal-bar .ids { font-family: var(--mono); font-size: .74rem; color: var(--ink-3); display: flex; gap: 18px; flex-wrap: wrap; }
.legal-bar .cc { font-size: .8rem; color: var(--ink-3); }

/* sticky mobile CTA */
.sticky-cta { display: none; }

/* ---------- Legal pages ---------- */
.legal-page { padding: 56px 0 70px; }
.legal-page h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 8px; }
.legal-page .updated { font-family: var(--mono); font-size: .78rem; color: var(--ink-3); margin-bottom: 30px; }
.legal-page h2 { font-size: 1.2rem; margin: 30px 0 10px; color: var(--ink); }
.legal-page p, .legal-page li { color: var(--ink-2); font-size: .96rem; margin-bottom: 10px; }
.legal-page ul { padding-left: 22px; }
.legal-page .box { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px; margin: 22px 0; }
.legal-page a.inline { color: var(--brand); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell-feat { grid-column: span 2; }
  .lanes-grid { grid-template-columns: 1fr; }
  .panel-grid { grid-template-columns: 1fr; }
  .panel-media { min-height: 240px; }
  .compare-wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0;
    background: var(--bg-2); padding: 18px 22px; border-bottom: 1px solid var(--line); gap: 16px;
  }
  .nav-toggle { display: inline-flex; background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 9px; padding: 9px 12px; cursor: pointer; }
  .head-cta { display: none; }
  .bento { grid-template-columns: 1fr; }
  .cell-feat { grid-column: span 1; }
  .compare-cols { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .sticky-cta {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
    background: rgba(11,15,23,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    padding: 12px 16px; gap: 10px;
  }
  .sticky-cta .btn { flex: 1; justify-content: center; }
  body { padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
