/* Caria Labs — UI mockup components
   Eye-catching product-screenshot frames used in marketing sections.
   Browser/app chrome wrapping a fake dashboard UI, drawn with HTML + CSS.
   Original compositions — no third-party product reproduced.
*/

/* ---------- Showcase wrapper ---------- */
.showcase {
  position: relative;
  border-radius: 22px;
  padding: 28px;
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(217,127,74,0.12), transparent 60%),
    radial-gradient(50% 50% at 85% 100%, rgba(127,178,138,0.06), transparent 60%),
    linear-gradient(180deg, #111114 0%, #0d0d0f 100%);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.showcase::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(246,243,236,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246,243,236,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(60% 60% at 50% 30%, #000 0%, transparent 80%);
  pointer-events: none;
}
.showcase > * { position: relative; z-index: 1; }

/* ---------- Browser chrome ---------- */
.browser {
  background: #f5f1ea;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.1);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7), 0 2px 8px rgba(0,0,0,0.25);
  color: #1a1a1c;
  font-family: var(--font-body);
}
.browser .bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #ebe5da, #ded7c9);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.browser .traffic { display: flex; gap: 6px; }
.browser .traffic span {
  width: 11px; height: 11px; border-radius: 50%;
  background: #cdc6b8;
}
.browser .traffic span:nth-child(1) { background: #ed695d; }
.browser .traffic span:nth-child(2) { background: #f4bb4e; }
.browser .traffic span:nth-child(3) { background: #5bc557; }
.browser .urlbar {
  flex: 1;
  background: #f7f3ec;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 6px;
  padding: 5px 12px;
  font-family: var(--font-mono); font-size: 11px; color: #555;
  display: flex; align-items: center; gap: 8px;
}
.browser .urlbar::before {
  content: "⌕"; color: #888;
}
.browser .body { padding: 0; }

/* ---------- Dashboard UI: sidebar + content ---------- */
.dash {
  display: grid;
  grid-template-columns: 224px 1fr;
  min-height: 440px;
  background: #f7f3ec;
}
.dash .side {
  background: #1a1d28;
  color: #cfd3dd;
  padding: 18px 14px;
  border-right: 1px solid rgba(0,0,0,0.15);
  font-size: 12.5px;
}
.dash .side .brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 15px; color: #fff;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  letter-spacing: -0.01em;
}
.dash .side .brand .logo {
  width: 20px; height: 20px; border-radius: 5px;
  background: linear-gradient(135deg, #d97f4a, #a75a2c);
}
.dash .side .brand small {
  display: block; font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .12em; color: rgba(255,255,255,0.45); font-weight: 400;
  margin-top: 2px; text-transform: uppercase;
}
.dash .side .section {
  font-family: var(--font-mono); font-size: 9px;
  color: rgba(255,255,255,0.38); letter-spacing: .15em;
  text-transform: uppercase; margin: 14px 0 8px;
}
.dash .side a {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 6px;
  color: #cfd3dd; text-decoration: none;
  font-size: 12.5px;
  margin-bottom: 2px;
  white-space: nowrap;
}
.dash .side a .ic { width: 14px; height: 14px; opacity: 0.75; flex-shrink: 0; }
.dash .side a.active {
  background: rgba(217,127,74,0.16);
  color: #fff;
}
.dash .side a.active .ic { opacity: 1; color: #d97f4a; }

.dash .main {
  padding: 18px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
  background: #f7f3ec;
}
.dash .topbar {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 6px;
}
.dash .topbar .crumb {
  font-family: var(--font-display); font-size: 18px; font-weight: 500;
  letter-spacing: -0.01em; color: #1a1a1c;
}
.dash .topbar .search {
  flex: 1;
  background: #fff; border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px; padding: 6px 12px;
  font-size: 11.5px; color: #999;
  font-family: var(--font-mono);
  display: flex; align-items: center; gap: 6px;
}
.dash .topbar .search::before { content: "⌕"; color: #aaa; }
.dash .topbar .iconbtns { display: flex; gap: 8px; }
.dash .topbar .iconbtns span {
  width: 26px; height: 26px; border-radius: 6px;
  background: #fff; border: 1px solid rgba(0,0,0,0.08);
  display: grid; place-items: center;
  font-size: 12px; color: #666;
}
.dash .topbar .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #d97f4a, #a75a2c);
  display: grid; place-items: center;
  color: #fff; font-size: 10px; font-weight: 600;
  font-family: var(--font-mono);
}

.dash .card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  min-height: 120px;
}
.dash .card .hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.dash .card .hd .t { font-size: 11px; color: #888; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.dash .card .hd .pill { font-size: 9.5px; padding: 2px 8px; border-radius: 999px; background: rgba(127,178,138,0.14); color: #3c7a4d; font-family: var(--font-mono); letter-spacing: .05em; }
.dash .card .v { font-family: var(--font-display); font-size: 30px; letter-spacing: -0.02em; color: #1a1a1c; }
.dash .card .v small { font-family: var(--font-body); font-size: 12px; color: #888; margin-left: 6px; font-weight: 400; }

/* Map card */
.dash .map {
  grid-row: span 2;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 14px;
  display: flex; flex-direction: column;
  min-height: 260px;
}
.dash .map .hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.dash .map .hd .t { font-family: var(--font-display); font-size: 14px; font-weight: 500; color: #1a1a1c; }
.dash .map .hd .pill {
  font-size: 9.5px; padding: 2px 8px; border-radius: 999px;
  background: rgba(217,127,74,0.12); color: #a75a2c;
  font-family: var(--font-mono); letter-spacing: .05em;
}
.dash .map .canvas {
  flex: 1;
  background:
    radial-gradient(circle at 32% 46%, rgba(217,127,74,0.18) 0%, transparent 26%),
    radial-gradient(circle at 62% 34%, rgba(217,127,74,0.12) 0%, transparent 22%),
    radial-gradient(circle at 48% 68%, rgba(217,127,74,0.14) 0%, transparent 24%),
    linear-gradient(180deg, #ece2cf 0%, #e3d5b9 100%);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  min-height: 180px;
}
.dash .map .canvas::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
}
.dash .map .canvas .pin {
  position: absolute;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(217,127,74,0.2); border: 1px solid #d97f4a;
  display: grid; place-items: center;
}
.dash .map .canvas .pin::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #d97f4a;
}
.dash .map .canvas .route {
  position: absolute; inset: 0; pointer-events: none;
}

/* Chart card */
.dash .chart { padding: 14px; }
.dash .chart .bars {
  display: flex; align-items: flex-end; gap: 6px; height: 64px;
  margin-top: 10px;
}
.dash .chart .bars span {
  flex: 1; background: #1a1d28; border-radius: 3px 3px 0 0;
}
.dash .chart .bars span.hi { background: #d97f4a; }
.dash .chart .axis {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 9px; color: #999;
  margin-top: 6px; letter-spacing: .06em;
}

/* Table card */
.dash .table {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 14px;
}
.dash .table .hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.dash .table .hd .t { font-family: var(--font-display); font-size: 14px; font-weight: 500; color: #1a1a1c; }
.dash .table .hd .add {
  background: #1a1d28; color: #fff; font-size: 10px; font-family: var(--font-mono);
  padding: 5px 10px; border-radius: 5px; letter-spacing: .04em;
}
.dash .table table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.dash .table th {
  text-align: left; font-family: var(--font-mono); font-size: 9px;
  color: #999; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 6px; border-bottom: 1px solid rgba(0,0,0,0.06); font-weight: 500;
}
.dash .table td {
  padding: 9px 6px; border-bottom: 1px dashed rgba(0,0,0,0.06);
  color: #333;
}
.dash .table td:last-child { text-align: right; font-family: var(--font-mono); font-size: 10.5px; }
.dash .table tr:last-child td { border-bottom: none; }
.dash .table .badge {
  display: inline-block; font-size: 9px; font-family: var(--font-mono);
  padding: 2px 7px; border-radius: 999px; letter-spacing: .04em;
}
.dash .table .badge.ok { background: rgba(127,178,138,0.16); color: #3c7a4d; }
.dash .table .badge.warn { background: rgba(224,176,74,0.2); color: #8a6420; }
.dash .table .badge.run { background: rgba(217,127,74,0.14); color: #a75a2c; }

/* ---------- AI assistant mockup ---------- */
.assist {
  background: #13130f;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  display: grid;
  grid-template-columns: 170px 1fr;
  min-height: 420px;
  color: #ebe7dc;
  font-size: 12.5px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7), 0 2px 8px rgba(0,0,0,0.25);
}
.assist .nav {
  background: #0e0e0c;
  padding: 14px 12px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.assist .nav .top {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 14px;
  margin-bottom: 14px;
}
.assist .nav .top .cube {
  width: 18px; height: 18px; border-radius: 4px;
  background: linear-gradient(135deg, #d97f4a, #a75a2c);
}
.assist .nav .sec { font-family: var(--font-mono); font-size: 9px; color: rgba(255,255,255,0.4); letter-spacing: .12em; margin: 14px 0 6px; text-transform: uppercase; }
.assist .nav .item { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 5px; color: rgba(255,255,255,0.7); font-size: 12px; }
.assist .nav .item.active { background: rgba(217,127,74,0.12); color: #f6e0ce; }
.assist .nav .item .dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.assist .nav .item.active .dot { background: #d97f4a; }

.assist .pane {
  padding: 18px;
  display: flex; flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.assist .pane .title {
  font-family: var(--font-display); font-size: 17px; margin-bottom: 4px; letter-spacing: -0.01em;
}
.assist .msg {
  background: #1c1c18;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 10px 12px;
  max-width: 86%;
  font-size: 12.5px;
  line-height: 1.5;
}
.assist .msg.user {
  align-self: flex-end;
  background: #23201a;
  border: 1px solid rgba(217,127,74,0.2);
  color: #f0e3d3;
}
.assist .step {
  font-family: var(--font-mono); font-size: 10.5px;
  color: rgba(255,255,255,0.48); letter-spacing: .02em;
  display: flex; gap: 8px; align-items: center;
}
.assist .step::before { content: "›"; color: #d97f4a; }
.assist .thought {
  background: rgba(255,255,255,0.02);
  border-left: 2px solid rgba(217,127,74,0.4);
  padding: 6px 10px;
  font-size: 11.5px; color: rgba(255,255,255,0.55);
  font-family: var(--font-mono);
}
.assist .composer {
  margin-top: auto;
  background: #1c1c18;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.assist .composer .ph { color: rgba(255,255,255,0.3); font-size: 12px; }
.assist .composer .row {
  display: flex; justify-content: space-between; align-items: center;
}
.assist .composer .chips { display: flex; gap: 6px; }
.assist .composer .chip {
  font-family: var(--font-mono); font-size: 10px;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7);
}
.assist .composer .chip.accent {
  background: rgba(217,127,74,0.16); color: #f0c7a6;
}
.assist .composer .send {
  width: 26px; height: 26px; border-radius: 6px;
  background: #d97f4a; color: #2a1a10;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
}

/* ---------- Caption rail ---------- */
.showcase-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
}
.showcase-layout .caption .kicker {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); letter-spacing: .14em; text-transform: uppercase;
}
.showcase-layout .caption h3 {
  font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 44px);
  letter-spacing: -0.025em; line-height: 1.05;
  font-weight: 400; margin: 16px 0;
}
.showcase-layout .caption h3 em {
  font-style: italic; color: var(--accent); font-weight: 300;
}
.showcase-layout .caption p {
  color: var(--ink-dim); font-size: 15px; line-height: 1.6; margin: 0 0 18px;
  max-width: 42ch;
}
.showcase-layout .caption .bullets {
  list-style: none; padding: 0; margin: 20px 0 0;
}
.showcase-layout .caption .bullets li {
  display: flex; gap: 10px; padding: 8px 0;
  border-top: 1px dashed var(--line);
  font-size: 13.5px; color: var(--ink-dim);
}
.showcase-layout .caption .bullets li::before {
  content: "↳"; color: var(--accent); font-family: var(--font-mono);
}
@media (max-width: 1100px) {
  .showcase-layout { grid-template-columns: 1fr; gap: 32px; }
  .showcase { padding: 18px; }
}
@media (max-width: 1000px) {
  .dash { grid-template-columns: 180px 1fr; }
  .dash .main { grid-template-columns: 1fr; }
  .dash .map { grid-row: auto; }
  .assist { grid-template-columns: 1fr; }
  .assist .nav { display: none; }
}
@media (max-width: 700px) {
  .dash { grid-template-columns: 1fr; }
  .dash .side { display: none; }
}
