/* ============================================================
   REVERT — Capabilities carousel (bleeds off the panel edge)
   ============================================================ */
.caps { background: #eef4fb; padding: 40px 20px 90px; }
.caps-panel {
  max-width: 1360px;
  margin: 0 auto;
  background: #fff;
  border-radius: 30px;
  padding: 46px 44px 50px;
  box-shadow: 0 30px 80px -30px rgba(20,40,70,.22), 0 0 0 1px rgba(16,24,40,.04);
  overflow: hidden;
}
.caps-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.caps-head h2 {
  margin: 0;
  font-family: "Zimula", "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -1.4px;
  color: #10243a;
  max-width: none;
}
@media (min-width: 1050px) { .h2-nowrap { white-space: nowrap; } }
.h2-bot {
  display: inline-block;
  width: 0.98em; height: 0.98em;
  vertical-align: -0.14em;
  margin: 0 0.1em;
  border-radius: 0.24em;
  overflow: hidden;
  transform: rotate(-6deg);
  box-shadow: 0 10px 22px -6px rgba(16,24,40,.42), 0 2px 5px rgba(16,24,40,.2);
  outline: 1.5px solid rgba(255,255,255,.65);
  outline-offset: -1.5px;
}
.h2-bot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.caps-head-left { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
/* buttons flush-left with the title, and a bigger gap above than below */
.caps-cta { justify-content: flex-start; margin-top: 56px; }
.caps-nav { display: flex; gap: 10px; flex: none; margin-bottom: 4px; }
.caps-arrow {
  width: 46px; height: 46px; border-radius: 50%;
  border: none; cursor: pointer;
  background: #eceff3; color: #2a3b4d;
  display: grid; place-items: center;
  transition: background .2s ease, transform .2s ease, opacity .2s ease;
}
.caps-arrow:hover { background: #dfe4ea; }
.caps-arrow:active { transform: scale(.93); }
.caps-arrow svg { width: 20px; height: 20px; }
.caps-arrow:disabled { opacity: .35; cursor: default; }

/* carousel: starts in line with the title, bleeds off the right edge, drag-scrollable */
.caps-viewport {
  overflow-x: auto;
  overflow-y: visible;
  margin: 0 -44px 0 0;
  padding: 6px 0 10px 0;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  cursor: grab;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.caps-viewport::-webkit-scrollbar { display: none; }
.caps-viewport.is-drag { cursor: grabbing; }
.caps-viewport.is-drag * { pointer-events: none; }
.caps-row { display: flex; gap: 22px; width: max-content; }

.cap { width: 400px; flex: none; scroll-snap-align: start; display: flex; flex-direction: column; }
.cap-visual {
  position: relative;
  height: 300px;
  border-radius: 18px;
  overflow: hidden;
  background: #cfe3d7;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
.cap-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cap-title {
  margin: 18px 0 7px;
  font-size: 18px; font-weight: 700; letter-spacing: -0.3px; color: #10243a;
  font-family: "Plus Jakarta Sans", "Zimula", sans-serif;
}
.cap-text { margin: 0; font-size: 14px; line-height: 1.5; color: #5c6b7a; max-width: 42ch; }

/* ---- image mockups ---- */
.cap-mock { position: absolute; inset: 0; }
/* dashboard: sits at the bottom, bigger with small side gutters, shows a bit more */
.cap-mock--img img {
  position: absolute; left: 50%; bottom: -22%;
  transform: translateX(-50%);
  width: 90%; max-width: none;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -2px 34px -10px rgba(16,24,40,.38), 0 0 0 1px rgba(16,24,40,.05);
}
/* phone: bigger, sits at the bottom, ~3/4 shows from the bottom up */
.cap-mock--phone img {
  position: absolute; left: 50%; bottom: -22%;
  transform: translateX(-50%);
  width: 62%; max-width: none;
  filter: drop-shadow(0 20px 34px rgba(16,24,40,.3));
}
/* transparent phone clip — ~3/4 shows from the bottom, bg visible on the sides */
.cap-mock--video { position: absolute; inset: 0; }
.cap-mock--video video {
  position: absolute; left: 50%; top: 46px;
  transform: translateX(-50%);
  width: 86%; height: auto; max-width: none;
  filter: drop-shadow(0 18px 30px rgba(16,24,40,.28));
}

/* ============================================================
   Automatizari — animated flow
   ============================================================ */
.cap-mock--auto { display: flex; align-items: center; justify-content: center; padding: 18px; }
.flow { position: relative; width: 80%; display: flex; flex-direction: column; gap: 14px; }
.flow::before { content: ""; position: absolute; left: 26px; top: 26px; bottom: 26px; width: 2px; background: rgba(16,40,70,.14); border-radius: 2px; }
.flow-node {
  position: relative; display: flex; align-items: center; gap: 11px;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border-radius: 12px; padding: 10px 13px;
  font-size: 13px; font-weight: 600; color: #22303e;
  box-shadow: 0 6px 16px -8px rgba(16,24,40,.4), 0 0 0 1px rgba(16,24,40,.05);
}
.flow-node .ic { width: 28px; height: 28px; flex: none; border-radius: 9px; display: grid; place-items: center; background: #eef2f6; color: #2a3b4d; }
.flow-node .ic img { width: 28px; height: 28px; border-radius: 9px; object-fit: cover; }
.flow-node .ic svg { width: 16px; height: 16px; }
.flow-node .ic.wa { background: transparent; }
.flow-node .ic.wa img { width: 28px; height: 28px; border-radius: 8px; object-fit: contain; }
.flow-node .ic.nt { background: #28ce68; color: #fff; }
.flow-node .ic.nt svg { width: 16px; height: 16px; }
.flow-node.is-notif .fn-time { margin-left: auto; font-size: 11px; font-weight: 600; color: #8893a0; }
.flow-node .glow { position: absolute; inset: -1px; border-radius: 12px; box-shadow: 0 0 0 2px #28ce68, 0 8px 22px -6px rgba(40,206,104,.6); opacity: 0; pointer-events: none; }

/* ============================================================
   Agenti AI — rich Google -> Gmail -> reply "recording"
   ============================================================ */
.cap-mock--ai { display: flex; align-items: center; justify-content: center; }
.ai-frame {
  position: relative;
  width: 80%; height: 90%;
  background: #fff; border-radius: 15px; overflow: hidden;
  box-shadow: 0 22px 48px -14px rgba(16,24,40,.45), 0 0 0 1px rgba(16,24,40,.07);
  display: flex; flex-direction: column;
}
.ai-bar { flex: none; height: 28px; display: flex; align-items: center; gap: 5px; padding: 0 11px; border-bottom: 1px solid #eef0f3; background: #fafbfc; }
.ai-bar .d { width: 7px; height: 7px; border-radius: 50%; background: #d7dce2; }
.ai-bar .ai-url { margin-left: 8px; font-size: 9.5px; font-weight: 600; color: #8893a0; background: #eef0f3; border-radius: 6px; padding: 3px 8px; white-space: nowrap; overflow: hidden; }
.ai-view { position: relative; flex: 1; overflow: hidden; }
.ai-cam { position: absolute; inset: 0; will-change: transform; }

.scene { position: absolute; inset: 0; padding: 14px; display: flex; flex-direction: column; gap: 10px; opacity: 0; }

/* google */
.sc-google { align-items: center; justify-content: flex-start; padding-top: 24px; }
.g-logo { width: 112px; height: auto; margin-bottom: 8px; }
.g-box { width: 100%; display: flex; align-items: center; gap: 8px; border: 1px solid #e3e6ea; border-radius: 999px; padding: 9px 14px; box-shadow: 0 2px 8px rgba(16,24,40,.06); min-height: 36px; }
.g-box .g-ic { width: 15px; height: 15px; flex: none; color: #9aa4b0; }
.g-text { font-size: 12px; color: #202124; font-weight: 500; }
.g-caret { width: 1.5px; height: 15px; background: #1a73e8; display: inline-block; animation: capBlink 1s steps(1) infinite; }
.gm-caret { animation: capBlink 1s steps(1) infinite; }
@keyframes capBlink { 50% { opacity: 0; } }
.g-results { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.g-res { display: flex; align-items: center; gap: 9px; background: #f7f9fb; border-radius: 10px; padding: 8px 10px; opacity: 0; }
.g-res.hot { box-shadow: 0 0 0 2px #1a73e8; background: #eef4ff; }
.g-fav { width: 26px; height: 26px; flex: none; border-radius: 7px; background: #1a73e8; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 11px; }
.g-fav.alt { background: #9aa4b0; }
.g-meta b { font-size: 11.5px; color: #1a0dab; display: block; }
.g-meta span { font-size: 9.5px; color: #5f6368; }
.g-res.dim { opacity: 0; }

/* gmail */
.sc-gmail { gap: 9px; }
.gm-top { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #202124; border-bottom: 1px solid #eef0f3; padding-bottom: 8px; }
.gm-logo { width: 22px; height: auto; }
.gm-f { font-size: 10.5px; color: #5f6368; }
.gm-f b { color: #202124; font-weight: 600; }
.gm-body { flex: 1; font-size: 10.5px; line-height: 1.5; color: #3c4043; white-space: pre-wrap; }
.gm-caret { width: 1.5px; height: 13px; background: #1a73e8; display: inline-block; vertical-align: -2px; }
.gm-attach { display: flex; align-items: center; gap: 8px; border: 1px solid #e3e6ea; border-radius: 8px; padding: 6px 9px; align-self: flex-start; background: #fff; }
.gm-pdf { font-size: 8px; font-weight: 800; color: #fff; background: #ea4335; border-radius: 4px; padding: 3px 5px; letter-spacing: .4px; }
.gm-att-meta b { font-size: 10px; color: #202124; }
.gm-att-meta span { font-size: 9px; color: #5f6368; margin-left: 3px; }
.gm-send { align-self: flex-start; font-size: 11px; font-weight: 700; color: #fff; background: #1a73e8; border: none; border-radius: 999px; padding: 8px 18px; cursor: default; }

/* reply */
.sc-reply { justify-content: center; gap: 14px; }
.rv-row { display: flex; align-items: flex-start; gap: 9px; opacity: 0; }
.rv-ava { width: 30px; height: 30px; flex: none; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.rv-ava img { width: 100%; height: 100%; object-fit: contain; }
.rv-bubble { background: #eef2f6; border-radius: 12px 12px 12px 4px; padding: 9px 12px; }
.rv-bubble b { font-size: 11px; color: #10243a; display: block; margin-bottom: 2px; }
.rv-bubble p { margin: 0; font-size: 11.5px; color: #22303e; }

/* iOS-style push notification */
.rv-notif.ios {
  opacity: 0;
  background: rgba(244,246,248,.97);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 11px 13px;
  box-shadow: 0 14px 30px -10px rgba(16,24,40,.32), 0 0 0 1px rgba(16,24,40,.04);
}
.ios-head { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.ios-app { width: 19px; height: 19px; flex: none; border-radius: 5px; background: #28ce68; display: grid; place-items: center; }
.ios-app svg { width: 12px; height: 12px; }
.ios-name { font-size: 9.5px; font-weight: 700; letter-spacing: .5px; color: #8893a0; text-transform: uppercase; }
.ios-time { margin-left: auto; font-size: 9.5px; color: #a3abb5; }
.ios-title { font-size: 12px; font-weight: 800; color: #10243a; margin-bottom: 2px; }
.ios-body { font-size: 11px; line-height: 1.35; color: #3a434d; }

/* ======================= RESPONSIVE ======================= */
@media (max-width: 860px) {
  .caps-panel { padding: 30px 18px 34px; border-radius: 24px; }
  .caps-viewport { margin: 0 -18px 0 0; padding: 6px 0 10px 0; }
  .caps-head { margin-bottom: 24px; }
  .caps-head h2 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .caps-arrow { width: 40px; height: 40px; }
  .cap { width: 300px; }
  .cap-visual { height: 280px; }
}
